-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20674][SQL] Support registering UserDefinedFunction as named UDF #17915
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
Conversation
|
Test build #76642 has started for PR 17915 at commit |
|
retest this please |
gatorsmile
left a comment
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.
LGTM
| def register( | ||
| name: String, | ||
| udaf: UserDefinedAggregateFunction): UserDefinedAggregateFunction = { | ||
| def register(name: String, udaf: UserDefinedAggregateFunction): UserDefinedAggregateFunction = { |
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.
nit: Is there any change from the previous one at this line?
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.
No, I think it's just style change.
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.
Is it better to change the style?
|
Test build #76646 has finished for PR 17915 at commit
|
|
LGTM |
|
Thanks! Merging to master/2.2 |
## What changes were proposed in this pull request? For some reason we don't have an API to register UserDefinedFunction as named UDF. It is a no brainer to add one, in addition to the existing register functions we have. ## How was this patch tested? Added a test case in UDFSuite for the new API. Author: Reynold Xin <[email protected]> Closes #17915 from rxin/SPARK-20674. (cherry picked from commit d099f41) Signed-off-by: Xiao Li <[email protected]>
## What changes were proposed in this pull request? For some reason we don't have an API to register UserDefinedFunction as named UDF. It is a no brainer to add one, in addition to the existing register functions we have. ## How was this patch tested? Added a test case in UDFSuite for the new API. Author: Reynold Xin <[email protected]> Closes apache#17915 from rxin/SPARK-20674.
What changes were proposed in this pull request?
For some reason we don't have an API to register UserDefinedFunction as named UDF. It is a no brainer to add one, in addition to the existing register functions we have.
How was this patch tested?
Added a test case in UDFSuite for the new API.