kgyrtkirk commented on a change in pull request #1879: [CALCITE-3880] Add 
SortExchange support to RelFieldTrimmer
URL: https://github.com/apache/calcite/pull/1879#discussion_r400702749
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/rel/RelDistributions.java
 ##########
 @@ -137,7 +137,7 @@ public RelDistribution apply(Mappings.TargetMapping 
mapping) {
       return getTraitDef().canonize(
           new RelDistributionImpl(type,
               ImmutableIntList.copyOf(
-                  Mappings.apply((Mapping) mapping, keys))));
 
 Review comment:
   I agree: at this location we should have `apply2` and not `apply` - it was a 
bug that `apply` was used here earlier

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to