TonyDoen commented on a change in pull request #35963:
URL: https://github.com/apache/spark/pull/35963#discussion_r834904383
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/WholeStageCodegenExec.scala
##########
@@ -709,7 +709,12 @@ case class WholeStageCodegenExec(child: SparkPlan)(val
codegenStageId: Int)
val duration = System.nanoTime() - startTime
WholeStageCodegenExec.increaseCodeGenTime(duration)
- logDebug(s"\n${CodeFormatter.format(cleanedSource)}")
+ val formatCleanCode = CodeFormatter.format(cleanedSource)
+ if (conf.wholeStageCleanCodePrintEnabled) {
+ logInfo(s"\n$formatCleanCode")
Review comment:
Thanks for reviewing. If I turn log level to DEBUG, there are logs more
than I need. So I try to configure this on the other way
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]