You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2022/12/29 02:04:00 UTC
[jira] [Resolved] (SPARK-41744) Support multiple arguments in groupBy.max(...)
[ https://issues.apache.org/jira/browse/SPARK-41744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-41744.
----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 39271
[https://github.com/apache/spark/pull/39271]
> Support multiple arguments in groupBy.max(...)
> ----------------------------------------------
>
> Key: SPARK-41744
> URL: https://issues.apache.org/jira/browse/SPARK-41744
> Project: Spark
> Issue Type: Sub-task
> Components: Connect
> Affects Versions: 3.4.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Major
> Fix For: 3.4.0
>
>
> {code}
> File "/.../spark/python/pyspark/sql/connect/group.py", line 181, in pyspark.sql.connect.group.GroupedData.max
> Failed example:
> df.groupBy().max("age", "height").show()
> Exception raised:
> Traceback (most recent call last):
> File "/.../miniconda3/envs/python3.9/lib/python3.9/doctest.py", line 1336, in __run
> exec(compile(example.source, filename, "single",
> File "<doctest pyspark.sql.connect.group.GroupedData.max[3]>", line 1, in <module>
> df.groupBy().max("age", "height").show()
> TypeError: max() takes 2 positional arguments but 3 were given
> {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