Skip to content

Commit 2d07ade

Browse files
[SPARK-20616] RuleExecutor logDebug of batch results should show diff to start of batch
Due to a likely typo, the logDebug msg printing the diff of query plans shows a diff to the initial plan, not diff to the start of batch.
1 parent 41439fd commit 2d07ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/RuleExecutor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ abstract class RuleExecutor[TreeType <: TreeNode[_]] extends Logging {
122122
logDebug(
123123
s"""
124124
|=== Result of Batch ${batch.name} ===
125-
|${sideBySide(plan.treeString, curPlan.treeString).mkString("\n")}
125+
|${sideBySide(batchStartPlan.treeString, curPlan.treeString).mkString("\n")}
126126
""".stripMargin)
127127
} else {
128128
logTrace(s"Batch ${batch.name} has no effect.")

0 commit comments

Comments
 (0)