berkaysynnada commented on code in PR #15906:
URL: https://github.com/apache/datafusion/pull/15906#discussion_r2071468319
##########
datafusion/optimizer/src/push_down_filter.rs:
##########
@@ -1382,6 +1386,73 @@ fn contain(e: &Expr, check_map: &HashMap<String, Expr>)
-> bool {
is_contain
}
+/// Infers new predicates by substituting equalities.
+/// For example, with predicates `t2.b = 3` and `t1.b > t2.b`,
+/// we can infer `t1.b > 3`.
+fn infer_predicates_from_equalities(predicates: Vec<Expr>) ->
Result<Vec<Expr>> {
Review Comment:
Great suggestion. I can help if you need some directions or have any
confusion
--
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]