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

Apache Spark reassigned SPARK-6903:
-----------------------------------

    Assignee: Apache Spark

> Eliminate partition filters from execution
> ------------------------------------------
>
>                 Key: SPARK-6903
>                 URL: https://issues.apache.org/jira/browse/SPARK-6903
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.3.0
>            Reporter: Yijie Shen
>            Assignee: Apache Spark
>            Priority: Minor
>
> Suppose I have a table t(id: String, event: String) saved as parquet file, 
> and have directory hierarchy: hdfs://path/to/data/root/dt=2015-01-01/hr=00
> After partition discovery, the result schema should be (id: String, event: 
> String, dt: String, hr: Int)
> If I have a query like:
> df.select($“id”).filter(event match).filter($“dt” > 
> “2015-01-01”).filter($”hr” > 13)
> In current implementation, after (dt > 2015-01-01 && hr >13) is used to 
> filter partitions, 
> these two filters remains in execution plan and result in each row returned 
> from parquet add two fields dt & hr each time, which I think is useless, if 
> we could rewrite execution.Filter’s predicate and eliminate them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to