Skip to content

Commit a1112c6

Browse files
juliuszsompolskirxin
authored andcommitted
[SPARK-20616] RuleExecutor logDebug of batch results should show diff to start of batch
## What changes were proposed in this pull request? 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. ## How was this patch tested? Now the debug message prints the diff between start and end of batch. Author: Juliusz Sompolski <[email protected]> Closes #17875 from juliuszsompolski/SPARK-20616. (cherry picked from commit 5d75b14) Signed-off-by: Reynold Xin <[email protected]>
1 parent 704b249 commit a1112c6

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)