You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/14 09:51:36 UTC

[GitHub] [spark] gengliangwang opened a new pull request #24598: [SPARK-27699][SQL] Partially push down disjunctive predicated in Parquet/ORC

gengliangwang opened a new pull request #24598: [SPARK-27699][SQL] Partially push down disjunctive predicated in Parquet/ORC
URL: https://github.com/apache/spark/pull/24598
 
 
   ## What changes were proposed in this pull request?
   
   Currently, in `ParquetFilters` and `OrcFilters`, if the child predicate of `Or` operator can't be entirely pushed down, the predicates will be thrown away. 
   In fact, the conjunctive predicates under `Or` operators can be partially pushed down.
   For example, says `a` and `b` are convertible, while `c` can't be pushed down, the predicate
   `a or (b and c)` 
   can be converted as 
   `(a or b) and (a or c)`
   We can still push down `(a or b)`.
   We can't push down disjunctive predicates only when one of its children is not partially convertible.
   
   ## How was this patch tested?
   
   Unit test

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org