You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/05/18 05:30:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17538579#comment-17538579 ]
Apache Spark commented on SPARK-39217:
--------------------------------------
User 'wangyum' has created a pull request for this issue:
https://github.com/apache/spark/pull/36588
> 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
>
> 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.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org