-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-33934][SQL] Add SparkFile's root dir to env property PATH #30973
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
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #133528 has finished for PR 30973 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Kubernetes integration test status success |
|
Test build #133535 has finished for PR 30973 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #133563 has finished for PR 30973 at commit
|
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
Show resolved
Hide resolved
|
Test build #133605 has started for PR 30973 at commit |
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
Outdated
Show resolved
Hide resolved
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
Show resolved
Hide resolved
|
This new feature itself looks useful. Btw, are you planning to make a PR to add a dedicated SQL document page for the |
Yea, I have planed to do this since a lot change done. #29087 (comment) |
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
Outdated
Show resolved
Hide resolved
sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala
Outdated
Show resolved
Hide resolved
|
LGTM otherwise |
|
Please update the PR description, too. Looks fine otherwise. |
Done |
|
retest this please |
|
Merged to master. |
|
Hi, all. |
| package org.apache.spark.sql.execution | ||
|
|
||
| import java.io.{BufferedReader, InputStream, InputStreamReader, OutputStream} | ||
| import java.io._ |
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.
@AngersZhuuuu . nit. Please enumerate all next time.
| @@ -1,3 +1,5 @@ | |||
| #! /usr/bin/python | |||
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.
Maybe, /usr/bin/python3?
Seems. same issue as last time. I will raise a fix. pr soon. |
…condition to fix flaky test ### What changes were proposed in this pull request? Follow comment and fix. flaky test #30973 (comment). This flaky test is similar as #30896 Some task's failed with root cause but in driver may return error without root cause , change. UT to check with status exit code since different root cause's exit code is not same. ### Why are the changes needed? Fix flaky test ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existed UT Closes #31046 from AngersZhuuuu/SPARK-33934-FOLLOW-UP. Lead-authored-by: angerszhu <[email protected]> Co-authored-by: AngersZhuuuu <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>

What changes were proposed in this pull request?
In hive we always use
Since in spark we wrapper script command with
/bash/bin -c, in this case we will throwscript.py command not found.This pr add a SparkFile's root dir path to execution env property
PATH, then sub-processor will findscrip.pyas program underPATH.Why are the changes needed?
Support SQL migration form Hive to Spark.
Does this PR introduce any user-facing change?
User can direct use script file name as program in script transform SQL.
How was this patch tested?
UT