-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-38939][SQL][FOLLOWUP] Replace named parameter with comment in ReplaceColumns #36487
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
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.
Sorry I'm a bit confused. named parameter has been widely used in the Spark codebase, what's wrong with it?
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.
Yeah, named parameter is right. But there is a compilation error when k8s integration test. Please see PR description for more information. And you can exec this command to check it again
build/sbt -Pkubernetes -Pkubernetes-integration-tests -Dtest.exclude.tags=r "kubernetes-integration-tests/test"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.
Do you know why the issue only happens in this place?
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.
Because deleteColumn#TableChange is Java file. I replace named parameter with comment, because it's used in Apache Spark.
| blockHandler.applicationRemoved(appId, true /* cleanupLocalDirs */) |
…changes#ReplaceColumns
|
Can one of the admins verify this patch? |
…ReplaceColumns ### What changes were proposed in this pull request? This PR aims to replace named parameter with comment in `ReplaceColumns`. ### Why are the changes needed? #36252 changed signature of deleteColumn#**TableChange.java**, but this PR breaks sbt compilation in k8s integration test. ```shell > build/sbt -Pkubernetes -Pkubernetes-integration-tests -Dtest.exclude.tags=r -Dspark.kubernetes.test.imageRepo=kubespark "kubernetes-integration-tests/test" [error] /Users/IdeaProjects/spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2AlterTableCommands.scala:147:45: not found: value ifExists [error] TableChange.deleteColumn(Array(name), ifExists = false) [error] ^ [error] /Users/IdeaProjects/spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2AlterTableCommands.scala:159:19: value ++ is not a member of Array[Nothing] [error] deleteChanges ++ addChanges [error] ^ [error] two errors found [error] (catalyst / Compile / compileIncremental) Compilation failed ``` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass the GA and k8s integration test. Closes #36487 from dcoliversun/SPARK-38939. Authored-by: Qian.Sun <[email protected]> Signed-off-by: huaxingao <[email protected]> (cherry picked from commit 16b5124) Signed-off-by: huaxingao <[email protected]>
|
Thanks! Merged to master and 3.3. |
|
Thank you @cloud-fan @jackierwzhang @huaxingao |
What changes were proposed in this pull request?
This PR aims to replace named parameter with comment in
ReplaceColumns.Why are the changes needed?
#36252 changed signature of deleteColumn#TableChange.java, but this PR breaks sbt compilation in k8s integration test.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass the GA and k8s integration test.