You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "BingKun Pan (Jira)" <ji...@apache.org> on 2022/09/06 12:13:00 UTC

[jira] [Updated] (SPARK-40355) Improve pushdown for orc & parquet when cast scenario

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

BingKun Pan updated SPARK-40355:
--------------------------------
    Description: 
#### Table Schema:
|  a |  b |  part |
|---|---|---|
|  int | string   |  string | 

#### SQL:
select * from table where b = 1 and part = 1

### A.Partition column 'part' has been pushed down, but column 'b' no push down.
<img width="815" alt="image" src="https://user-images.githubusercontent.com/15246973/188630971-4eed59c0-d134-4994-a7aa-0d057a49c5dc.png">

### B.After apply the pr, Partition column 'part' and column 'b' has been pushed down.
<img width="804" alt="image" src="https://user-images.githubusercontent.com/15246973/188631231-d30db19d-1d70-4712-bf75-bccaa2c790f4.png">

  was:I will supplement the scene later


> Improve pushdown for orc & parquet when cast scenario
> -----------------------------------------------------
>
>                 Key: SPARK-40355
>                 URL: https://issues.apache.org/jira/browse/SPARK-40355
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: BingKun Pan
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> #### Table Schema:
> |  a |  b |  part |
> |---|---|---|
> |  int | string   |  string | 
> #### SQL:
> select * from table where b = 1 and part = 1
> ### A.Partition column 'part' has been pushed down, but column 'b' no push down.
> <img width="815" alt="image" src="https://user-images.githubusercontent.com/15246973/188630971-4eed59c0-d134-4994-a7aa-0d057a49c5dc.png">
> ### B.After apply the pr, Partition column 'part' and column 'b' has been pushed down.
> <img width="804" alt="image" src="https://user-images.githubusercontent.com/15246973/188631231-d30db19d-1d70-4712-bf75-bccaa2c790f4.png">



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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