You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2023/01/13 13:46:00 UTC

[jira] [Resolved] (SPARK-39217) Makes DPP support the pruning side has Union

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

Yuming Wang resolved SPARK-39217.
---------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

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

> Makes DPP support the pruning side has Union
> --------------------------------------------
>
>                 Key: SPARK-39217
>                 URL: https://issues.apache.org/jira/browse/SPARK-39217
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Yuming Wang
>            Priority: Major
>             Fix For: 3.4.0
>
>
> Support the following case:
> {noformat}
> SELECT f.store_id,
>        f.date_id,
>        s.state_province
> FROM (SELECT 4 AS store_id,
>                date_id,
>                product_id
>       FROM   fact_sk
>       WHERE  date_id >= 1300
>       UNION ALL
>       SELECT   store_id,
>                date_id,
>                product_id
>       FROM   fact_stats
>       WHERE  date_id <= 1000) f
> JOIN dim_store s
> ON f.store_id = s.store_id
> WHERE s.country IN ('US', 'NL')
> {noformat}



--
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