cloud-fan commented on a change in pull request #27798: [SPARK-31045][SQL] Add
config for AQE logging level
URL: https://github.com/apache/spark/pull/27798#discussion_r388233784
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
##########
@@ -67,6 +67,8 @@ case class AdaptiveSparkPlanExec(
@transient private val lock = new Object()
+ @transient private val logLevel = conf.adaptiveExecutionLogLevel
Review comment:
nit:
```
@transient private val log: String => Unit = conf.adaptiveExecutionLogLevel
match {
case "TRACE" => logTrace
...
}
```
to avoid checking the log level everytime.
----------------------------------------------------------------
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]