morrySnow commented on code in PR #64618:
URL: https://github.com/apache/doris/pull/64618#discussion_r3457536290


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/InferSetOperatorDistinct.java:
##########
@@ -38,28 +44,137 @@
  * </pre>
  */
 public class InferSetOperatorDistinct extends OneRewriteRuleFactory {
+    private static final double LOWER_AGGREGATE_EFFECT_COEFFICIENT = 10000;
+    private static final double LOW_AGGREGATE_EFFECT_COEFFICIENT = 1000;
+    private static final double MEDIUM_AGGREGATE_EFFECT_COEFFICIENT = 100;
+
+    private final StatsDerive derive = new StatsDerive(false);
+
     @Override
     public Rule build() {
         return logicalSetOperation()
                 .when(operation -> operation.getQualifier() == 
Qualifier.DISTINCT)
                 .then(setOperation -> {

Review Comment:
   Misleading method name. rejectNLJ reads like an action verb, but it is a 
predicate that returns true when safe to proceed (no non-equi join conditions). 
A clearer name would be hasNoNonEquiJoinConditions.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to