You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2023/01/05 20:04:05 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4825: bugfix: remove cnf_rewrite in push_down_filter

alamb commented on code in PR #4825:
URL: https://github.com/apache/arrow-datafusion/pull/4825#discussion_r1062846485


##########
datafusion/optimizer/src/push_down_filter.rs:
##########
@@ -689,19 +700,15 @@ impl OptimizerRule for PushDownFilter {
                 }
             }
             LogicalPlan::CrossJoin(CrossJoin { left, right, .. }) => {
-                let predicates = utils::split_conjunction_owned(utils::cnf_rewrite(
-                    filter.predicate.clone(),
-                ));
-
+                let predicates = utils::split_conjunction_owned(filter.predicate.clone());
                 push_down_all_join(predicates, &filter.input, left, right, vec![])?
             }
             LogicalPlan::TableScan(scan) => {
                 let mut new_scan_filters = scan.filters.clone();
                 let mut new_predicate = vec![];
 
-                let filter_predicates = utils::split_conjunction_owned(
-                    utils::cnf_rewrite(filter.predicate.clone()),

Review Comment:
   I believe this is the only place that calls `cnf_rewrite` 
   
     https://github.com/search?q=repo%3Aapache%2Farrow-datafusion%20cnf_rewrite&type=code
   
   so if we are going to stop calling it, I think we should also remove `cnf_rewrite` from the code
   



-- 
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: github-unsubscribe@arrow.apache.org

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