wangshuo128 commented on a change in pull request #7357:
URL: https://github.com/apache/incubator-doris/pull/7357#discussion_r775043016
##########
File path: fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriter.java
##########
@@ -46,6 +46,15 @@
public class ExprRewriter {
private int numChanges_ = 0;
private final List<ExprRewriteRule> rules_;
+
+ // The type of clause that executes the rule.
+ // This type is only used in InferFiltersRule, other rules are not used
+ public enum ClauseType {
+ ONCLAUSE,
+ WHERECLAUSE,
Review comment:
```suggestion
WHERE_CLAUSE,
```
##########
File path: fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriter.java
##########
@@ -46,6 +46,15 @@
public class ExprRewriter {
private int numChanges_ = 0;
private final List<ExprRewriteRule> rules_;
+
+ // The type of clause that executes the rule.
+ // This type is only used in InferFiltersRule, other rules are not used
+ public enum ClauseType {
+ ONCLAUSE,
+ WHERECLAUSE,
+ OTHERCLAUSE, // All other clauses that are not on and not where
Review comment:
```suggestion
OTHER_CLAUSE, // All other clauses that are not on and not where
```
--
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]