spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-28169) Spark can’t push down partition predicate for OR expression
Date Wed, 01 Jul 2020 12:01:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-28169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wenchen Fan resolved SPARK-28169.
---------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 28805
[https://github.com/apache/spark/pull/28805]

> Spark can’t push down partition predicate for OR expression
> -----------------------------------------------------------
>
>                 Key: SPARK-28169
>                 URL: https://issues.apache.org/jira/browse/SPARK-28169
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: angerszhu
>            Assignee: angerszhu
>            Priority: Major
>              Labels: SQL
>             Fix For: 3.1.0
>
>
> Spark can't push down filter condition of Or:
> Such as if I have a table {color:#d04437}default.test{color}, his partition col is "{color:#d04437}dt{color}",
> if I use query : 
> {code:java}
> select * from default.test where dt=20190625 or (dt = 20190626 and id in (1,2,3) )
> {code}
> In this case, Spark will resolve or condition as one expression, and since this {color:#333333}expr {color}has
reference of "{color:#FF0000}id{color}", then it can't been push down.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message