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/08/21 15:02:00 UTC

[jira] [Commented] (SPARK-40164) The partitionSpec should be distinct keys after filter one row of row_number

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

Apache Spark commented on SPARK-40164:
--------------------------------------

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

> The partitionSpec should be distinct keys after filter one row of row_number
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-40164
>                 URL: https://issues.apache.org/jira/browse/SPARK-40164
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Wan Kun
>            Priority: Minor
>
> For query
> {code:sql}
> SELECT *
>   FROM (
>     SELECT *, row_number() over(partition by key order by value) rn
>     FROM testData t
>   ) t1
>   WHERE rn=1
> {code}
> column *key* will be distinct 



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