You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ClickHouse: Support tuple element access by index #2573
SELECTt.1FROM (SELECT (1, 'a') AS t)
SELECT (1, 'a').1SELECT tuple(1, 'a').2SELECT arr[1].1FROM t
All of these fail with ClickHouseDialect:
sql parser error: Expected: end of statement, found: .1 at Line: 1, Column: 9
The tokenizer reads .1 after an identifier, ) or ] as a float literal instead of a period followed by an integer, so the compound field access parser never sees it. Expected AST is Expr::CompoundFieldAccess with AccessExpr::Dot(Expr::Value(Number(1))), which is the shape the parser already produces for x . 1 written with spaces.
changed the title [-]ClickHouse: Support tuple element access by index (`t.1`, `(1, 'a').1`)[/-][+]ClickHouse: Support tuple element access by index[/+]on Sep 24, 2026
Activity
[-]ClickHouse: Support tuple element access by index (`t.1`, `(1, 'a').1`)[/-][+]ClickHouse: Support tuple element access by index[/+]