You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "angerszhu (Jira)" <ji...@apache.org> on 2020/12/14 11:32:00 UTC
[jira] [Commented] (SPARK-33758) Prune unnecessary output
partitioning when the attribute is not part of output.
[ https://issues.apache.org/jira/browse/SPARK-33758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248924#comment-17248924 ]
angerszhu commented on SPARK-33758:
-----------------------------------
I am interested in this and can you have a more clear desc or reproduce case ?
Since I see the. outputPartitioning is default value
> Prune unnecessary output partitioning when the attribute is not part of output.
> -------------------------------------------------------------------------------
>
> Key: SPARK-33758
> URL: https://issues.apache.org/jira/browse/SPARK-33758
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.0.1, 3.1.0
> Reporter: Prakhar Jain
> Priority: Major
>
> Consider the query:
>
> select t1.id from t1 JOIN t2 on t1.id = t2.id
>
> This query will have top level Project node which will just project t1.id. But the outputPartitioning of this project node will be:
> PartitioningCollection(HashPartitioning(t1.id), HashPartitioning(t2.id))
>
> We should drop HashPartitioning(t2.id) from outputPartitioning of Project node.
>
> cc - [~maropu] [~cloud_fan]
--
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