Skip to content

Commit

Permalink
EXPB-2218 Prune right relation of left join in case of distinct aggre…
Browse files Browse the repository at this point in the history
…gation
  • Loading branch information
kramerul committed May 27, 2024
1 parent 2b50519 commit 5db605f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,8 @@ public TrimResult trimFields(
TrimResult result = trimChild(join, join.getLeft(), fieldsUsed, extraFields);
Mapping mapping = result.right;
Mapping mapping2 = Mappings.create(MappingType.INVERSE_SURJECTION,join.getRowType().getFieldCount(),mapping.getTargetCount());
for ( int i = 0 ; i < mapping.getTargetCount(); i++) {
mapping2.set(i,mapping.getTarget(i));
for ( IntPair map : mapping) {
mapping2.set(map.source,map.target);
}
return new TrimResult(result.left,mapping2);
}
Expand Down

0 comments on commit 5db605f

Please sign in to comment.