• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AfterShip / clickhouse-sql-parser / 30525248824

30 Jul 2026 08:04AM UTC coverage: 54.903% (+0.3%) from 54.589%
30525248824

Pull #293

github

therealpandey
Leave a non-join GLOBAL/LOCAL where it was found

parseJoinLocality consumed the keyword before it knew a join followed, so
a locality with no join was swallowed: `SELECT * FROM t1 GLOBAL` parsed and
Format() returned `SELECT * FROM t1`. ClickHouse rejects that (Code 62), as
it does `FROM t global` — GLOBAL is not an implicit alias. Rewind to the
keyword instead, so the statement parser reports it.

The ARRAY JOIN error now points at the locality it names rather than at the
token the join op stopped on, "expected IN after GLOBAL" prints the token
instead of its kind, and parseJoinLocality drops a pos parameter that
parseJoinOp discards.

No golden fixture changes.
Pull Request #293: Fix parsing of the GLOBAL/LOCAL join locality and GLOBAL NOT IN

67 of 71 new or added lines in 3 files covered. (94.37%)

521 existing lines in 3 files now uncovered.

9132 of 16633 relevant lines covered (54.9%)

3156.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.57
/parser/parser_column.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc