924060929 commented on code in PR #9807:
URL: https://github.com/apache/incubator-doris/pull/9807#discussion_r884810863


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/RuleType.java:
##########
@@ -23,18 +23,22 @@
 public enum RuleType {
     // binding rules
     BINDING_UNBOUND_RELATION_RULE,
+    BINDING_SENTINEL,

Review Comment:
   We should use an enum RuleClass to avoid sentinel. e.g.
   ```java
   enum RuleClass {
     BIND_RULE, REWRITE_RULE,  EXPLORATION_RULE...
   }
   
   public enum RuleType {
      BINDING_UNBOUND_RELATION_RULE(BIND_RULE),
      LOGICAL_JOIN_COMMUTATIVE(EXPLORATION_RULE)
      ...
   }
   ```
   
   



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to