Skip to content

Commit

Permalink
[fix](runtimefilter)slot comparison bug #34791
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly authored May 14, 2024
1 parent dae90d3 commit b9deb89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,18 +389,18 @@ public Boolean visitPhysicalSetOperation(PhysicalSetOperation setOperation, Push
List<NamedExpression> output = setOperation.getOutputs();
for (int j = 0; j < output.size(); j++) {
NamedExpression expr = output.get(j);
if (expr.getName().equals(probeSlot.getName())) {
if (expr.getExprId().equals(probeSlot.getExprId())) {
projIndex = j;
break;
}
}
if (projIndex == -1) {
return false;
}
// probeExpr only has one input slot
for (int i = 0; i < setOperation.children().size(); i++) {
Map<Expression, Expression> map = Maps.newHashMap();
// probeExpr only has one input slot
map.put(ctx.probeExpr.getInputSlots().iterator().next(),
map.put(probeSlot,
setOperation.getRegularChildrenOutputs().get(i).get(projIndex));
Expression newProbeExpr = ctx.probeExpr.accept(ExpressionVisitors.EXPRESSION_MAP_REPLACER, map);
PushDownContext childPushDownContext = ctx.withNewProbeExpression(newProbeExpr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public String toString() {
.stream().forEach(rf -> builder.append(" RF").append(rf.getId().asInt()));
}
return Utils.toSqlString("PhysicalCTEConsumer[" + id.asInt() + "]",
"stats", getStats(), "cteId", cteId, "RFs", builder);
"stats", getStats(), "cteId", cteId, "RFs", builder, "map", consumerToProducerSlotMap);
}

@Override
Expand Down

0 comments on commit b9deb89

Please sign in to comment.