File tree Expand file tree Collapse file tree
main/scala/org/apache/comet/rules
test/scala/org/apache/comet/parquet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -357,10 +357,12 @@ case class CometExecRule(session: SparkSession) extends Rule[SparkPlan] {
357357 override def apply (plan : SparkPlan ): SparkPlan = {
358358 val newPlan = _apply(plan)
359359 if (showTransformations && ! newPlan.fastEquals(plan)) {
360- logInfo(s """
360+ // scalastyle:off println
361+ println(s """
361362 |=== Applying Rule $ruleName ===
362363 | ${sideBySide(plan.treeString, newPlan.treeString).mkString(" \n " )}
363364 | """ .stripMargin)
365+ // scalastyle:on println
364366 }
365367 newPlan
366368 }
Original file line number Diff line number Diff line change @@ -65,10 +65,12 @@ case class CometScanRule(session: SparkSession)
6565 override def apply (plan : SparkPlan ): SparkPlan = {
6666 val newPlan = _apply(plan)
6767 if (showTransformations && ! newPlan.fastEquals(plan)) {
68- logInfo(s """
68+ // scalastyle:off println
69+ println(s """
6970 |=== Applying Rule $ruleName ===
7071 | ${sideBySide(plan.treeString, newPlan.treeString).mkString(" \n " )}
7172 | """ .stripMargin)
73+ // scalastyle:on println
7274 }
7375 newPlan
7476 }
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ class CometParquetWriterSuite extends CometTestBase {
6969
7070 withSQLConf(
7171 CometConf .COMET_NATIVE_PARQUET_WRITE_ENABLED .key -> " true" ,
72+ CometConf .COMET_EXPLAIN_TRANSFORMATIONS .key -> " true" ,
7273 SQLConf .SESSION_LOCAL_TIMEZONE .key -> " America/Halifax" ,
7374 CometConf .COMET_OPERATOR_DATA_WRITING_COMMAND_ALLOW_INCOMPAT .key -> " true" ,
7475 CometConf .COMET_EXEC_ENABLED .key -> " true" ) {
You can’t perform that action at this time.
0 commit comments