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

AfterShip / clickhouse-sql-parser / 25711855554 / 1
52%
master: 52%

Build:
DEFAULT BRANCH: master
Ran 12 May 2026 03:40AM UTC
Files 15
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 May 2026 03:39AM UTC coverage: 51.621% (+0.2%) from 51.469%
25711855554.1

push

github

web-flow
Allow reserved keywords as bare column names in SELECT list (#269)

Extend keyword-as-identifier handling to recognize end-of-statement
(EOF or `;`) as a disambiguator in expression position, so projections
like `SELECT case`, `SELECT case;`, or `SELECT limit` parse as bare
column refs — matching ClickHouse server (verified against 25.10.7.6,
which returns UNKNOWN_IDENTIFIER, i.e. syntactic accept).

The eos check is applied inline in parseColumnExpr rather than added to
keywordIsSelectItemIdentifier, because the latter is shared with the
terminator/alias-position check, where a trailing clause-starter
keyword at EOF (e.g. `SELECT * FROM`) must still be treated as a
terminator. Verified `SELECT * FROM` still errors as before.

Fixtures:
- select_keyword_as_only_column.sql        (`SELECT interval`)
- select_keyword_as_only_column_semicolon  (`SELECT case;`)
- select_clause_keyword_as_only_column     (`SELECT limit`)
- select_keyword_as_alias                  (`SELECT 1 AS interval, 2 AS from, 3 AS limit`)

The AS-alias fixture documents that `SELECT 1 AS <reserved-kw>` already
works for every reserved keyword without special handling, because
matchTokenKind(TokenKindIdent) coerces TokenKindKeyword and so
parseIdent accepts keyword tokens as alias names; added a comment at
the AS branch of parseSelectItem to make that intentional.

8247 of 15976 relevant lines covered (51.62%)

2990.69 hits per line

Source Files on job 25711855554.1
  • Tree
  • List 15
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25711855554
  • 33c6bf25 on github
  • Prev Job for on master (#25662343573.1)
  • Next Job for on master (#25913331789.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc