Skip to content

Commit 46514b6

Browse files
committed
When iterator of RuleExecutor breaks, the num of iterator should be iteration - 1 not iteration.
1 parent f73b56f commit 46514b6

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
@@ -79,7 +79,7 @@ abstract class RuleExecutor[TreeType <: TreeNode[_]] extends Logging {
7979
}
8080

8181
if (curPlan.fastEquals(lastPlan)) {
82-
logTrace(s"Fixed point reached for batch ${batch.name} after $iteration iterations.")
82+
logTrace(s"Fixed point reached for batch ${batch.name} after ${iteration - 1} iterations.")
8383
continue = false
8484
}
8585
lastPlan = curPlan

0 commit comments

Comments
 (0)