Skip to content

Commit

Permalink
[hotfix][table-planner] Use equals instead of '==' to compare digests…
Browse files Browse the repository at this point in the history
… in FlinkCalcMergeRule

This closes #26108
  • Loading branch information
lincoln-lil authored Feb 5, 2025
1 parent ac4f595 commit c3c7f0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void onMatch(RelOptRuleCall call) {
Calc bottomCalc = call.rel(1);

Calc newCalc = FlinkRelUtil.merge(topCalc, bottomCalc);
if (newCalc.getDigest() == bottomCalc.getDigest()) {
if (newCalc.getDigest().equals(bottomCalc.getDigest())) {
// newCalc is equivalent to bottomCalc,
// which means that topCalc
// must be trivial. Take it out of the game.
Expand Down

0 comments on commit c3c7f0c

Please sign in to comment.