[ https://issues.apache.org/jira/browse/SPARK-41749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17652655#comment-17652655 ]
Apache Spark commented on SPARK-41749: -------------------------------------- User 'HyukjinKwon' has created a pull request for this issue: https://github.com/apache/spark/pull/39271 > Support multiple arguments in groupBy.sum(...) > ---------------------------------------------- > > Key: SPARK-41749 > URL: https://issues.apache.org/jira/browse/SPARK-41749 > Project: Spark > Issue Type: Sub-task > Components: Connect > Affects Versions: 3.4.0 > Reporter: Hyukjin Kwon > Assignee: Apache Spark > Priority: Major > > {code} > File "/.../spark/python/pyspark/sql/connect/group.py", line 186, in > pyspark.sql.connect.group.GroupedData.sum > Failed example: > df.groupBy().sum("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.sum[3]>", line 1, > in <module> > df.groupBy().sum("age", "height").show() > TypeError: sum() 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org