kiszk commented on a change in pull request #24055: [SPARK-26820][SQL] Prints 
log messages when hints ignored in the analyzer
URL: https://github.com/apache/spark/pull/24055#discussion_r266973285
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
 ##########
 @@ -201,6 +201,19 @@ object SQLConf {
     .stringConf
     .createOptional
 
+  val PLAN_HINT_IGNORE_LOG_LEVEL =
+    buildConf("spark.sql.planHintIgnoreLog.level")
+      .internal()
+      .doc("Configures the log level for logging the plan hint ignored in the 
analyzer. " +
+        "The value can be 'trace', 'debug', 'info', 'warn', or 'error'. " +
+        "The default log level is 'trace'.")
+      .stringConf
+      .transform(_.toUpperCase(Locale.ROOT))
+      .checkValue(logLevel => Set("TRACE", "DEBUG", "INFO", "WARN", 
"ERROR").contains(logLevel),
+        "Invalid value for 'spark.sql.optimizer.planChangeLog.level'. Valid 
values are " +
 
 Review comment:
   `spark.sql.optimizer.planChangeLog.level` -> 
`spark.sql.optimizer.planHintIgnoreLog.level`?

----------------------------------------------------------------
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