JiajunBernoulli commented on code in PR #3641:
URL: https://github.com/apache/calcite/pull/3641#discussion_r1482348168


##########
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:
##########
@@ -4902,6 +4929,18 @@ public interface Config {
 
     /** Sets {@link #convertCorrelateToJoin()}. */
     Config withConvertCorrelateToJoin(boolean convertCorrelateToJoin);
+
+    /** Whether to save the distinct if we know that the input is
+     * already unique; default true. */
+    @Value.Default
+    default boolean redundantDistinct() {

Review Comment:
   Good catch.
   
   I changed default value, now we can set `true` to optimize. (Default is 
`false`)



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to