[ 
https://issues.apache.org/jira/browse/SPARK-42716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697845#comment-17697845
 ] 

Apache Spark commented on SPARK-42716:
--------------------------------------

User 'EnricoMi' has created a pull request for this issue:
https://github.com/apache/spark/pull/40334

> DataSourceV2 cannot report KeyGroupedPartitioning with multiple keys per 
> partition
> ----------------------------------------------------------------------------------
>
>                 Key: SPARK-42716
>                 URL: https://issues.apache.org/jira/browse/SPARK-42716
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.4.1
>            Reporter: Enrico Minack
>            Priority: Major
>
> From Spark 3.0.0 until 3.2.3, a DataSourceV2 could report its partitioning as 
> {{KeyGroupedPartitioning}} via {{SupportsReportPartitioning}}, even if 
> multiple keys belong to a partition.
> With SPARK-37377, only if all partitions implement {{HasPartitionKey}}, the 
> partition information reported through {{SupportsReportPartitioning}} is 
> considered by catalyst. But this limits the number of keys per partition to 1.
> Spark should continue to support the more general situation of 
> {{KeyGroupedPartitioning}} with multiple keys per partition, like 
> {{HashPartitioning}}.



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

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

Reply via email to