hsyuan commented on a change in pull request #1495: [CALCITE-3399] 
RelFieldTrimmer trim fields for UNION, INTERSECT, INTE…
URL: https://github.com/apache/calcite/pull/1495#discussion_r335175701
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java
 ##########
 @@ -697,14 +697,20 @@ public TrimResult trimFields(
 
   /**
    * Variant of {@link #trimFields(RelNode, ImmutableBitSet, Set)} for
-   * {@link org.apache.calcite.rel.core.SetOp} (including UNION and UNION ALL).
+   * {@link org.apache.calcite.rel.core.Union}.
 
 Review comment:
   Add a new one and deprecate the old one. In the old constructor, add a 
sanity check to make sure the setop type is union(all) only, otherwise, throw 
an exception.

----------------------------------------------------------------
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