HyukjinKwon commented on a change in pull request #35963:
URL: https://github.com/apache/spark/pull/35963#discussion_r834860822
##########
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:
I don't think it's worth introducing another PR. I believe you can
already configure this via log4j configurations
--
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]