-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28323][SQL][Python] PythonUDF should be able to use in join condition #25091
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
|
Cool @viirya! I will take a closer look within 2 days and get this in |
|
Thanks! @HyukjinKwon |
|
Test build #107433 has finished for PR 25091 at commit
|
|
retest this please. |
|
Test build #107445 has finished for PR 25091 at commit
|
|
Test build #107452 has finished for PR 25091 at commit
|
|
Test build #107458 has finished for PR 25091 at commit
|
BryanCutler
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
| "Can only extract scalar vectorized udf or sql batch udf") | ||
|
|
||
| val resultAttrs = udfs.zipWithIndex.map { case (u, i) => | ||
| val resultAttrs = validUdfs.zipWithIndex.map { case (u, i) => |
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.
oof, nice catch!
|
merged to master, thanks @viirya ! |
|
jira seems down, so I wasn't able to resolve the issue. will try later |
|
Yea, LGTM too! |
|
Thanks! @HyukjinKwon @BryanCutler |
What changes were proposed in this pull request?
There is a bug in
ExtractPythonUDFsthat produces wrong result attributes. It causes a failure when usingPythonUDFs among multiple child plans, e.g., join. An example is usingPythonUDFs in join condition.How was this patch tested?
Added test.