LuciferYang commented on code in PR #35963:
URL: https://github.com/apache/spark/pull/35963#discussion_r847243597
##########
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:
+1 Agree with @HyukjinKwon
@TonyDoen you can just configure
`org.apache.spark.sql.execution.WholeStageCodegenExec` to debug
--
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]