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 2023/01/11 03:37:00 UTC

[jira] [Resolved] (SPARK-41879) `DataFrame.collect` should support nested types

     [ https://issues.apache.org/jira/browse/SPARK-41879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruifeng Zheng resolved SPARK-41879.
-----------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

Issue resolved by pull request 39462
[https://github.com/apache/spark/pull/39462]

> `DataFrame.collect` should support nested types
> -----------------------------------------------
>
>                 Key: SPARK-41879
>                 URL: https://issues.apache.org/jira/browse/SPARK-41879
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect, PySpark
>    Affects Versions: 3.4.0
>            Reporter: Ruifeng Zheng
>            Assignee: Apache Spark
>            Priority: Major
>             Fix For: 3.4.0
>
>
> {code:java}
> File "/Users/ruifeng.zheng/Dev/spark/python/pyspark/sql/connect/functions.py", line 1578, in pyspark.sql.connect.functions.struct
> Failed example:
>     df.select(struct('age', 'name').alias("struct")).collect()
> Expected:
>     [Row(struct=Row(age=2, name='Alice')), Row(struct=Row(age=5, name='Bob'))]
> Got:
>     [Row(struct={'age': 2, 'name': 'Alice'}), Row(struct={'age': 5, 'name': 'Bob'})]
> {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