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
TDIGEST_GENERATE_SKETCH fails with "Duplicate field name" after TDIGEST_QUANTILE on the same input #20819
TDigestGenerateSketchSqlAggregator looks for an existing TDigestSketchAggregatorFactory with the same input and compression, and returns it as its own aggregation. If TDIGEST_QUANTILE came first, that factory is the quantile's a0:agg, so it is added twice and Grouping rejects the duplicate name. In the reverse order TDIGEST_QUANTILE reuses the sketch through its post-aggregator, which is fine. I tried removing the reuse loop locally as an experiment, and all of the queries above planned without errors.
To reproduce, add a test with the first query to TDigestSketchSqlAggregatorTest.
Activity
akasakariko commentedon Nov 4, 2026
I'd like to work on this
FrankChen021 commentedon Nov 4, 2026
I assigned to you. Thank you @akasakariko
AlphaSudo commentedon Nov 4, 2026
Hi! I'm interested in investigating this issue and potentially contributing a fix, along with regression tests and benchmarks where applicable.
Before starting, I'd like to check:
I haven't started implementation yet and want to avoid duplicating work.
Thanks!