-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-35086][SQL][CORE] --verbose should be passed to Spark SQL CLI too #32163
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
|
gentle ping @yaooqinn @cloud-fan |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
cc @wangyum too FYI |
|
Test build #137337 has finished for PR 32163 at commit
|
|
Test build #748540421 for PR 32163 at commit |
|
Test build #748540421 for PR 32163 at commit |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
| } | ||
|
|
||
| test("SPARK-35086: --verbose should be passed to Spark SQL CLI") { | ||
| runCliWithin(2.minute, |
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.
nit: inline, runCliWithin(2.minute, Seq("--verbose"))("SELECT 1;" -> "SELECT 1")
|
Test build #137350 has finished for PR 32163 at commit
|
|
Test build #748540421 for PR 32163 at commit |
|
Test build #750310558 for PR 32163 at commit |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137384 has finished for PR 32163 at commit
|
|
Merged to master. |
|
The JIRA number here was incorrect. It had to be SPARK-35068. |
|
I switched the JIRA between SPARK-35068 and SPARK-35086. cc @MaxGekk FYI |
|
We build a client with v3.2.0 and run Also ping @toujours33 |
|
And |
Checking this. |
|
Thanks @AngersZhuuuu |
|
Thanks @LuciferYang and @AngersZhuuuu! |
|
Looks like a bug, thanks @LuciferYang and @AngersZhuuuu! |
|
Found the reason, raise a fix pr soon and with a spark-shell verbose unit test |
… class when is sql shell ### What changes were proposed in this pull request? In #32163 spark pass `--verbose` to main class o support spark-sql shell can use verbose argument too. But for other shell main class such as saprk-shell, it's intercepter don't support `--verbose`, so we should only pass `--verbose` for sql shell ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Closes #34322 from AngersZhuuuu/SPARK-37052. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
… class when is sql shell ### What changes were proposed in this pull request? In #32163 spark pass `--verbose` to main class o support spark-sql shell can use verbose argument too. But for other shell main class such as saprk-shell, it's intercepter don't support `--verbose`, so we should only pass `--verbose` for sql shell ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Closes #34322 from AngersZhuuuu/SPARK-37052. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit a6d3a2c) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
… class when is sql shell ### What changes were proposed in this pull request? In apache#32163 spark pass `--verbose` to main class o support spark-sql shell can use verbose argument too. But for other shell main class such as saprk-shell, it's intercepter don't support `--verbose`, so we should only pass `--verbose` for sql shell ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Closes apache#34322 from AngersZhuuuu/SPARK-37052. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit a6d3a2c) Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 34086b0) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
… class when is sql shell ### What changes were proposed in this pull request? In apache#32163 spark pass `--verbose` to main class o support spark-sql shell can use verbose argument too. But for other shell main class such as saprk-shell, it's intercepter don't support `--verbose`, so we should only pass `--verbose` for sql shell ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Closes apache#34322 from AngersZhuuuu/SPARK-37052. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit a6d3a2c) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
… class when is sql shell ### What changes were proposed in this pull request? In apache#32163 spark pass `--verbose` to main class o support spark-sql shell can use verbose argument too. But for other shell main class such as saprk-shell, it's intercepter don't support `--verbose`, so we should only pass `--verbose` for sql shell ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Closes apache#34322 from AngersZhuuuu/SPARK-37052. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit a6d3a2c) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
In current code, if we run spark sql with
It won't be passed to end SparkSQLCliDriver, then the SessionState won't call
setIsVerboseIn the CLI option, it shows
It's not consistent. This pr fix this issue
Why are the changes needed?
Fix bug
Does this PR introduce any user-facing change?
when user call
-vwhen run spark sql, sql will be echoed to console.How was this patch tested?
Added UT