You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2022/12/30 02:26:00 UTC
[jira] [Resolved] (SPARK-41743) groupBy(...).agg(...).sort does not actually sort the output
[ https://issues.apache.org/jira/browse/SPARK-41743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruifeng Zheng resolved SPARK-41743.
-----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 39295
[https://github.com/apache/spark/pull/39295]
> groupBy(...).agg(...).sort does not actually sort the output
> ------------------------------------------------------------
>
> Key: SPARK-41743
> URL: https://issues.apache.org/jira/browse/SPARK-41743
> Project: Spark
> Issue Type: Sub-task
> Components: Connect
> Affects Versions: 3.4.0
> Reporter: Hyukjin Kwon
> Assignee: Martin Grund
> Priority: Major
> Fix For: 3.4.0
>
>
> {code}
> **********************************************************************
> File "/.../spark/python/pyspark/sql/connect/group.py", line 211, in pyspark.sql.connect.group.GroupedData.agg
> Failed example:
> df.groupBy(df.name).agg(F.min(df.age)).sort("name").show()
> Differences (ndiff with -expected +actual):
> +-----+--------+
> | name|min(age)|
> +-----+--------+
> + | Bob| 5|
> |Alice| 2|
> - | Bob| 5|
> +-----+--------+
> + <BLANKLINE>
> {code}
--
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