| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
END is not reserved in ClickHouse; columns named `end` (e.g. CloudQuery's aws_ec2_reserved_instances) failed to parse in function arguments, WHERE, INSERT column lists and CREATE TABLE since it joined reservedKeywords. CASE still requires END because parseColumnCaseExpr expects it explicitly.
| Back | FazBrowse Home | New Git URL |
Make END non-reserved again so columns named end parse, since ClickHouse does not reserve it.
END joined reservedKeywords in #282, which broke end as a bare column name everywhere except the few lookahead-disambiguated positions:
SELECT end FROM t, GROUP BY end and ORDER BY end already worked, which made the breakage look partial.
CASE is unaffected: parseColumnCaseExpr expects the END keyword explicitly, so CASE WHEN a THEN 1 ELSE 2 FROM t still errors (covered by a new test) — same as ClickHouse, which reports a syntax error for it.
All of the above statements were verified against clickhouse local 26.7.1 (Docker clickhouse/clickhouse-server:latest).
Tests: cases added to TestNonReservedKeywordAsIdentifier, new TestCaseExprRequiresEnd, and fixture parser/testdata/query/select_end_as_column_name.sql with regenerated goldens.