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
Commit ed513cb
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spark): report distinct_handling for Spark aggregate functions
Override `AggregateUDFImpl::distinct_handling` on the Spark aggregates to
match what their accumulators actually do:
- `collect_set`: `Insensitive`, the accumulator always deduplicates, so
`EliminateAggregateDistinct` can drop a redundant `DISTINCT`.
- `collect_list`, `try_sum`: `Unsupported`, the accumulators ignore
`is_distinct` and silently return the non-distinct result.
- `avg`: `Unsupported`, the accumulator rejects `DISTINCT` with an error.
Adds unit tests asserting each function's tag and a sqllogictest showing
`collect_set(DISTINCT x)` is planned as `collect_set(x)`.
Closes#25375
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments