Github user liancheng commented on the pull request: https://github.com/apache/spark/pull/8200#issuecomment-132056044 @cloud-fan Conjunctions (`And` predicates) are more friendlier to filter push-down optimization. Because it doesn't require both branches to be convertible. Take predicate `a <= 1 AND someUdf(b)` as an example, UDF is not pushable, but it's still safe to push `a <= 1`. On the other hand, if you got `a > 1 OR !someUdf(b)`, you can't push down `a > 1`.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org