-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-19338][SQL] Add UDF names in explain #16707
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
|
Maybe add a prefix so it is clear a UDF? e.g. |
|
Aha, SGTM. I'll fix |
|
Test build #72013 has started for PR 16707 at commit |
|
LGTM pending jenkins. |
| val dataType = ScalaReflection.schemaFor[RT].dataType | ||
| val inputTypes = Try(Nil).toOption | ||
| def builder(e: Seq[Expression]) = ScalaUDF(func, dataType, e, inputTypes.getOrElse(Nil)) | ||
| def builder(e: Seq[Expression]) = ScalaUDF(func, dataType, e, inputTypes.getOrElse(Nil), Some(name)) |
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.
Oh, I remember I was told that we should remove or fix the comments above to generate this codes too.
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.
oh, yea, you're right. Thanks! I'll fix
|
Test build #72010 has finished for PR 16707 at commit
|
|
It seems the latest test failure does not relate to this pr..., I'll test again. |
|
Test build #72014 has started for PR 16707 at commit |
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 pending jenkins.
|
Jenkins, retest this please. |
|
Test build #72018 has finished for PR 16707 at commit
|
|
@gatorsmile @rxin okay, it seems ready to merge. |
## What changes were proposed in this pull request? This pr added a variable for a UDF name in `ScalaUDF`. Then, if the variable filled, `DataFrame#explain` prints the name. ## How was this patch tested? Added a test in `UDFSuite`. Author: Takeshi YAMAMURO <[email protected]> Closes #16707 from maropu/SPARK-19338. (cherry picked from commit 9f523d3) Signed-off-by: gatorsmile <[email protected]>
|
Thanks! Merging to master. |
## What changes were proposed in this pull request? This pr added a variable for a UDF name in `ScalaUDF`. Then, if the variable filled, `DataFrame#explain` prints the name. ## How was this patch tested? Added a test in `UDFSuite`. Author: Takeshi YAMAMURO <[email protected]> Closes apache#16707 from maropu/SPARK-19338.
## What changes were proposed in this pull request? This pr added a variable for a UDF name in `ScalaUDF`. Then, if the variable filled, `DataFrame#explain` prints the name. ## How was this patch tested? Added a test in `UDFSuite`. Author: Takeshi YAMAMURO <[email protected]> Closes apache#16707 from maropu/SPARK-19338.
What changes were proposed in this pull request?
This pr added a variable for a UDF name in
ScalaUDF.Then, if the variable filled,
DataFrame#explainprints the name.How was this patch tested?
Added a test in
UDFSuite.