Skip to content

Commit

Permalink
branch-3.0: [fix](nereids)use equals instead of == to compare String #…
Browse files Browse the repository at this point in the history
…45628 (#45707)

Cherry-picked from #45628

Co-authored-by: starocean999 <[email protected]>
  • Loading branch information
github-actions[bot] and starocean999 authored Dec 23, 2024
1 parent 632f93a commit cb21741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private LogicalPlan preAggForRandomDistribution(LogicalOlapScan olapScan) {
SlotReference slot = SlotReference.fromColumn(olapTable, col, col.getName(), olapScan.qualified());
ExprId exprId = slot.getExprId();
for (Slot childSlot : childOutputSlots) {
if (childSlot instanceof SlotReference && ((SlotReference) childSlot).getName() == col.getName()) {
if (childSlot instanceof SlotReference && ((SlotReference) childSlot).getName().equals(col.getName())) {
exprId = childSlot.getExprId();
slot = slot.withExprId(exprId);
break;
Expand Down

0 comments on commit cb21741

Please sign in to comment.