Uh oh!
There was an error while loading. Please reload this page.
[SPARK-38939][SQL][FOLLOWUP] Replace named parameter with comment in ReplaceColumns - #36487
[SPARK-38939][SQL][FOLLOWUP] Replace named parameter with comment in ReplaceColumns#36487dcoliversun wants to merge 1 commit into
Conversation
dcoliversun
commented
May 9, 2022
There was a problem hiding this comment.
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.
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.
Do you know why the issue only happens in this place?
There was a problem hiding this comment.
Because deleteColumn#TableChange is Java file. I replace named parameter with comment, because it's used in Apache Spark.
…changes#ReplaceColumns
AmplabJenkins
commented
May 9, 2022
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 <qian.sun2020@gmail.com> Signed-off-by: huaxingao <huaxin_gao@apple.com> (cherry picked from commit 16b5124) Signed-off-by: huaxingao <huaxin_gao@apple.com>
huaxingao
commented
May 9, 2022
Thanks! Merged to master and 3.3. |
dcoliversun
commented
May 10, 2022
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.