Skip to content

Add Aggregate::try new with validation checks#3286

Merged
andygrove merged 4 commits intoapache:masterfrom
andygrove:aggregate-try-new
Aug 31, 2022
Merged

Add Aggregate::try new with validation checks#3286
andygrove merged 4 commits intoapache:masterfrom
andygrove:aggregate-try-new

Conversation

@andygrove
Copy link
Member

Which issue does this PR close?

Related to #3285

Rationale for this change

I found a bug in ProjectionPushDown in another branch I am working on. Adding validation checks when we create aggregate plans exposes this and seems like a good idea in general.

What changes are included in this PR?

Add Aggregate::try new and update existing code to call that rather than creating the struct directly.

Are there any user-facing changes?

No

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

Labels

core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants