Skip to content

Commit 39c09fe

Browse files
committed
Fix off by one error.
1 parent 5af3537 commit 39c09fe

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
@@ -71,7 +71,7 @@ abstract class RuleExecutor[TreeType <: TreeNode[_]] extends Logging {
7171
result
7272
}
7373
iteration += 1
74-
if (iteration >= batch.strategy.maxIterations) {
74+
if (iteration > batch.strategy.maxIterations) {
7575
logger.info(s"Max iterations ($iteration) reached for batch ${batch.name}")
7676
continue = false
7777
}

0 commit comments

Comments
 (0)