-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AggregateUDFImpl::schema_name
and AggregateUDFImpl::display_name
for customizable name
#14695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jayzhan211 -- this makes sense to me
if let Some(null_treatment) = null_treatment { | ||
write!(f, " {}", null_treatment)?; | ||
Expr::AggregateFunction(AggregateFunction { func, params }) => { | ||
match func.schema_name(params) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
AggregateUDFImpl::schema_name
for customizable schema nameAggregateUDFImpl::schema_name
and AggregateUDFImpl::display_name
for customizable name
Add display name as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great -- thanks @jayzhan211
Thanks @alamb |
Which issue does this PR close?
Rationale for this change
Similar to ScalarFunction, we can modify the schema name to the one we want.
We need this for #14689
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?