[fix](Nereids) merge limit should use bottom phase (#29142)

This commit is contained in:
morrySnow
2023-12-27 21:04:00 +08:00
committed by GitHub
parent 0436013baf
commit abbd2cedff
2 changed files with 51 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class MergeLimits extends OneRewriteRuleFactory {
Math.min(upperLimit.getLimit(),
Math.max(bottomLimit.getLimit() - upperLimit.getOffset(), 0)),
bottomLimit.getOffset() + upperLimit.getOffset(),
upperLimit.getPhase(), bottomLimit.child()
upperLimit.child().getPhase(), bottomLimit.child()
);
}).toRule(RuleType.MERGE_LIMITS);
}