Skip to content

Commit 547e92e

Browse files
committed
[SPARK-35086][SQL][CORE] --verbose should be passed to Spark SQL CLI too
1 parent 816f6dd commit 547e92e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,9 @@ private[spark] class SparkSubmit extends Logging {
852852
}
853853
sparkConf.set(SUBMIT_PYTHON_FILES, formattedPyFiles.split(",").toSeq)
854854

855+
if (args.verbose) {
856+
childArgs ++= Seq("--verbose")
857+
}
855858
(childArgs.toSeq, childClasspath.toSeq, sparkConf, childMainClass)
856859
}
857860

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,4 +594,11 @@ class CliSuite extends SparkFunSuite with BeforeAndAfterAll with Logging {
594594
-> "BroadcastHashJoin"
595595
)
596596
}
597+
598+
test("SPARK-35086: --verbose should be passed to Spark SQL CLI") {
599+
runCliWithin(2.minute,
600+
Seq("--verbose"))(
601+
"SELECT 1;" -> "SELECT 1"
602+
)
603+
}
597604
}

0 commit comments

Comments
 (0)