Skip to content

[SPARK-56035] [SQL] Introduce AggregateValidator for single-pass resolver Aggregate validation#54866

Open
mihailoale-db wants to merge 1 commit intoapache:masterfrom
mihailoale-db:resolveraggvalidation
Open

[SPARK-56035] [SQL] Introduce AggregateValidator for single-pass resolver Aggregate validation#54866
mihailoale-db wants to merge 1 commit intoapache:masterfrom
mihailoale-db:resolveraggvalidation

Conversation

@mihailoale-db
Copy link
Contributor

What changes were proposed in this pull request?

Right now

SELECT col1 + rand() FROM VALUES(1) GROUP BY ALL

fails with MISSING_AGGREGATION in the single-pass resolver because we can't match grouping and aggregate expressions since semanticEquals requires both expressions to be deterministic but we do the validation before PulloutNonDeterministic call.

Why are the changes needed?

In order to fix the failing query.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added + existing tests.

Was this patch authored or co-authored using generative AI tooling?

Yes.

@mihailoale-db mihailoale-db force-pushed the resolveraggvalidation branch from 38d3744 to 0eebaa2 Compare March 17, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant