-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-10151] [SQL] Support invocation of hive macro #8354
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 #41360 has finished for PR 8354 at commit
|
|
Is there a way to add a test for this? |
|
@JoshRosen It isn't because spark does not support "create macro". I've tried to support that in new patch. |
|
Test build #42651 has finished for PR 8354 at commit
|
|
Test build #42748 has finished for PR 8354 at commit
|
|
Test build #42811 has finished for PR 8354 at commit
|
|
Test build #42887 has finished for PR 8354 at commit
|
|
Test build #43228 has finished for PR 8354 at commit
|
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.
Formatting nit: wrap these arguments one per line.
|
Hey @chenghao-intel, could you take a look at this PR? I'd like to get your feedback/review because this PR largely undoes some of the changes that you made in |
|
Test build #43960 has finished for PR 8354 at commit
|
|
Test build #44021 has finished for PR 8354 at commit
|
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: How about return boolean directly?
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.
+1, good catch.
|
@navis @JoshRosen this change is much cleaner now, and LGTM, except a Nit, we can leave it for the further improvement. |
|
Yep, LGTM as well. @navis, thanks for helping to simplify this! |
|
I've merged this to master. Thanks @navis! |
Macro in hive (which is GenericUDFMacro) contains real function inside of it but it's not conveyed to tasks, resulting null-pointer exception.