Skip to content

Remove AggregateFunctionDefinition - #11803

Merged
jayzhan211 merged 2 commits into
apache:mainfrom
lewiszlw:cleanup-aggr-func
Aug 5, 2024
Merged

Remove AggregateFunctionDefinition#11803
jayzhan211 merged 2 commits into
apache:mainfrom
lewiszlw:cleanup-aggr-func

Conversation

@lewiszlw

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #.

Rationale for this change

Remove AggregateFunctionDefinition as all aggr functions are already implemented using UDAF.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actionsgithub-actionsBot added sql SQL Planner logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate substrait Changes to the substrait crate labels Aug 4, 2024
@alambalamb added the api change Changes the API exposed to users of the crate label Aug 4, 2024

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @lewiszlw -- this looks very nice to me

cc @jayzhan211

Comment threaddatafusion/core/src/physical_planner.rs Outdated
}
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🧹

Comment threaddatafusion/expr/src/expr.rs Outdated

@jayzhan211jayzhan211 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Thanks @lewiszlw@alamb

@jayzhan211
jayzhan211 merged commit b4069a6 into apache:mainAug 5, 2024
Michael-J-Ward added a commit to Michael-J-Ward/datafusion-python that referenced this pull request Aug 10, 2024
Upstream Changes:
- The field name was switched from `func_name` to func.
- AggregateFunctionDefinition was removed
Ref: apache/datafusion#11803
Michael-J-Ward added a commit to Michael-J-Ward/datafusion-python that referenced this pull request Aug 20, 2024
Upstream Changes:
- The field name was switched from `func_name` to func.
- AggregateFunctionDefinition was removed
Ref: apache/datafusion#11803
andygrove pushed a commit to apache/datafusion-python that referenced this pull request Aug 23, 2024
* update datafusion deps to point to githuc.com/apache/datafusion
Datafusion 41 is not yet released on crates.io.
* update TableProvider::scan
Ref: apache/datafusion#11516
* use SessionStateBuilder
The old constructor is deprecated.
Ref: apache/datafusion#11403
* update AggregateFunction
Upstream Changes:
- The field name was switched from `func_name` to func.
- AggregateFunctionDefinition was removed
Ref: apache/datafusion#11803
* update imports in catalog
Catlog API was extracted to a separate crate.
Ref: apache/datafusion#11516
* use appropriate path for approx_distinct
Ref: apache/datafusion#11644
* migrate AggregateExt to ExprFunctionExt
Also removed `sqlparser` dependency since it's re-exported upstream.
Ref: apache/datafusion#11550
* update regr_count tests for new return type
Ref: apache/datafusion#11731
* migrate from function-array to functions-nested
The package was renamed upstream.
Ref: apache/datafusion#11602
* cargo fmt
* lock datafusion deps to 41
* remove todo from cargo.toml
All the datafusion dependencies are re-exported, but I still need to figure out *why*.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changeChanges the API exposed to users of the cratecoreCore DataFusion cratelogical-exprLogical plan and expressionsoptimizerOptimizer rulessqlSQL PlannersubstraitChanges to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@lewiszlw@alamb@jayzhan211