Skip to content

Commit

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

Cherry-picked from #45628

Co-authored-by: starocean999 <[email protected]>
  • Loading branch information
github-actions[bot] and starocean999 authored Dec 20, 2024
1 parent 06efd5b commit 1460af8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,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 1460af8

Please sign in to comment.