Skip to content

Commit c3c7f0c

Browse files
authored
[hotfix][table-planner] Use equals instead of '==' to compare digests in FlinkCalcMergeRule
This closes #26108
1 parent ac4f595 commit c3c7f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkCalcMergeRule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void onMatch(RelOptRuleCall call) {
7777
Calc bottomCalc = call.rel(1);
7878

7979
Calc newCalc = FlinkRelUtil.merge(topCalc, bottomCalc);
80-
if (newCalc.getDigest() == bottomCalc.getDigest()) {
80+
if (newCalc.getDigest().equals(bottomCalc.getDigest())) {
8181
// newCalc is equivalent to bottomCalc,
8282
// which means that topCalc
8383
// must be trivial. Take it out of the game.

0 commit comments

Comments
 (0)