dongjoon-hyun commented on a change in pull request #28097: 
[SPARK-31325][SQL][Web UI] Control a plan explain mode in the events of SQL 
listeners via SQLConf
URL: https://github.com/apache/spark/pull/28097#discussion_r402466406
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
 ##########
 @@ -2335,6 +2335,17 @@ object SQLConf {
     .booleanConf
     .createWithDefault(false)
 
+  val UI_EXPLAIN_MODE = buildConf("spark.sql.ui.explainMode")
+    .doc("Configures the query explain mode used in the Spark SQL UI. The 
value can be 'simple', " +
+      "'extended', 'codegen', 'cost', or 'formatted'. The default log level is 
'formatted'.")
+    .version("3.1.0")
+    .stringConf
+    .transform(_.toUpperCase(Locale.ROOT))
+    .checkValue(mode => Set("SIMPLE", "EXTENDED", "CODEGEN", "COST", 
"FORMATTED").contains(mode),
+      "Invalid value for 'spark.sql.queryDescriptionModeInListeners'. Valid 
values are " +
 
 Review comment:
   This seems to be a leftover after conf renaming. Maybe, 
`spark.sql.ui.explainMode`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to