-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
Tested polyglot-sql v0.1.4 ClickHouse dialect against 7,425 .sql files from ClickHouse/tests/queries/0_stateless/.
Summary
| Metric | Total | OK | Errors | Success Rate |
|---|---|---|---|---|
| Files | 7,425 | 5,100 | 2,325 | 68.7% |
| Statements | 141,952 | ~82,788 | ~59,164 | 58.3% |
Note: The statement count is approximate — when a file fails to parse, all its statements are counted as errors because the parser stops at the first error.
Common Error Categories
ClickHouse-Specific Syntax Not Supported
- Ternary operator
?:(e.g.,x > 0 ? 1 : 0) IGNORE()function — treated as a keyword instead of a function- Tuple element access via dot on literals:
('a', 'b').2 ARRAY JOINwithASinside array literals:[0 as x]DROP TEMPORARY TABLE—TEMPORARYnot recognized afterDROPsystemkeyword treated as reserved:system.one,system.numbers- Nested column access via dot in column lists:
INSERT INTO t (n.a, n.b) - Lambda expressions:
x -> -xin function arguments - Parametric aggregate functions:
groupArrayInsertAt('-')(...)(two argument lists) WITH TOTALSafterGROUP BYinside subqueriesCREATE TABLE ... AS SELECT ...(table from subquery)CREATE TABLE ... AS db.table(table cloning)DEFAULTcolumn values inCREATE TABLE:b DEFAULT 0SETas table name (reserved word conflict)FORMATclause:... FORMAT JSONEachRow {...}INSERT ... FORMATwith inline dataEnum8/Enum16types with negative values
DDL and Other Constructs
ALTER TABLE ... CLEAR COLUMN IN PARTITIONMergeTree(date, id, 1)— old-style engine parametersNested(...)column typeset allow_deprecated_syntax_for_merge_tree=1— parsed but affects subsequent DDL
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels