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
[BUG] ClickHouse parametric aggregates drop params group on render (quantile(0.5)(x) → quantile(x)) #531
ClickHouse parametric aggregates lose their params group when the AST is
rendered back to SQL: quantileTDigest(0.95)(value) becomes quantileTDigest(value).
Root cause
FunctionCall has a Parameters field (added for ClickHouse fn(params)(args),
issue #482 / PR #487), but FunctionCall.SQL() (pkg/sql/ast/sql.go) renders
only Arguments and never emits Parameters.
To Reproduce
tree, _:=gosqlx.ParseWithDialect(
"SELECT quantileTDigest(0.95)(value) FROM events",
keywords.DialectClickHouse)
fmt.Println(tree.SQL())
// SELECT quantileTDigest(value) FROM events (0.95 lost!)
Activity
fix(cli): render ClickHouse parametric aggregate params in gosqlx for…
fix(cli): render ClickHouse parametric aggregate params in gosqlx for…