-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-34977][SQL] LIST FILES/JARS/ARCHIVES cannot handle multiple arguments properly when at least one path is quoted #32074
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
…ot list all paths if at least one path is quoted.
| TestUtils.createJar(Seq(file8), jarFile5) | ||
|
|
||
| sql(s"ADD JAR ${jarFile4.getAbsolutePath}") | ||
| sql(s"ADD JAR ${jarFile5.getAbsolutePath}") |
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.
Unlike ADD FILE "path" and ADD ARCHIVE "path", we cannot execute ADD JAR "path" when the path contains whitespaces.
I think it's a bug and #32052 will fix this issue.
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.
Got it. @sarutak .
|
Test build #136998 has finished for PR 32074 at commit
|
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
retest this please. |
|
Test build #137011 has finished for PR 32074 at commit
|
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #137026 has finished for PR 32074 at commit
|
Add test for LIST JARS path where the path contains whitespaces.
|
Test build #137053 has finished for PR 32074 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
retest this please. |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137110 has finished for PR 32074 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137116 has finished for PR 32074 at commit
|
|
cc: @HyukjinKwon |
sql/core/src/main/scala/org/apache/spark/sql/execution/command/resources.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/command/resources.scala
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/command/resources.scala
Show resolved
Hide resolved
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137208 has finished for PR 32074 at commit
|
HyukjinKwon
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.
Looks okay
|
Thanks all. Merged into |
What changes were proposed in this pull request?
This PR fixes an issue that
LIST FILES/JARS/ARCHIVES path1 path2 ...cannot list all paths if at least one path is quoted.An example here.
In this example, the second
LIST FILESdoesn't showfile:/tmp/test1.To resolve this issue, I modified the syntax rule to be able to handle this case.
I also changed
SparkSQLParserto be able to handle paths which contains white spaces.Why are the changes needed?
This is a bug.
I also have a plan which extends
ADD FILE/JAR/ARCHIVEto take multiple paths like Hive and the syntax rule change is necessary for that.Does this PR introduce any user-facing change?
Yes. Users can pass quoted paths when using
ADD FILE/JAR/ARCHIVE.How was this patch tested?
New test.