Skip to content

Clearly gate sliding SUM(DISTINCT) type support#22866

Open
kumarUjjawal wants to merge 1 commit into
apache:mainfrom
kumarUjjawal:fix/gate-sum-distinct-type
Open

Clearly gate sliding SUM(DISTINCT) type support#22866
kumarUjjawal wants to merge 1 commit into
apache:mainfrom
kumarUjjawal:fix/gate-sum-distinct-type

Conversation

@kumarUjjawal

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Sliding SUM(DISTINCT) only supports Int64, but it was routed through the wider SUM type dispatch path. This made unsupported types fail with a less clear accumulator error.

What changes are included in this PR?

This PR adds an explicit Int64 gate for sliding SUM(DISTINCT).

Unsupported types now return a clear feature error that names the operation and type. The existing Int64 path is unchanged.

Are these changes tested?

Yes

Are there any user-facing changes?

No public API change

@kumarUjjawal kumarUjjawal requested a review from kosiew June 10, 2026 06:07
@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Jun 10, 2026
@kumarUjjawal

Copy link
Copy Markdown
Contributor Author

@kosiew Should we later on add support for the missing types?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearly gate sliding SUM(DISTINCT) type support

1 participant