xzj7019 commented on code in PR #45081:
URL: https://github.com/apache/doris/pull/45081#discussion_r1879222906
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/ExpressionOptimization.java:
##########
@@ -58,6 +59,20 @@ public class ExpressionOptimization extends
ExpressionRewrite {
BetweenToEqual.INSTANCE
)
);
+
+ /**
+ * don't use it with PushDownFilterThroughJoin, it may cause dead loop:
+ * LogicalFilter(origin expr)
+ * => LogicalFilter((origin expr) and (add min max range))
+ * => LogicalFilter((origin expr)) // use PushDownFilterThroughJoin
+ * => ...
+ */
+ public static final List<ExpressionRewriteRule> ADD_RANGE =
ImmutableList.of(
Review Comment:
is this possible to add other similar processing rule in the future?
--
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]