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 2023/02/13 05:12:00 UTC

[jira] [Resolved] (SPARK-42269) Support complex return types in DDL strings

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

Hyukjin Kwon resolved SPARK-42269.
----------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

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

> Support complex return types in DDL strings
> -------------------------------------------
>
>                 Key: SPARK-42269
>                 URL: https://issues.apache.org/jira/browse/SPARK-42269
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect, PySpark
>    Affects Versions: 3.4.0
>            Reporter: Xinrong Meng
>            Assignee: Xinrong Meng
>            Priority: Major
>             Fix For: 3.4.0
>
>
> {code}
> # Spark Connect
> >>> spark.range(2).select(udf(lambda x: (x, x), "struct<x:integer, y:integer>")("id"))
> ...
> AssertionError: returnType should be singular
> # vanilla PySpark
> >>> spark.range(2).select(udf(lambda x: (x, x), "struct<x:integer, y:integer>")("id"))
> DataFrame[<lambda>(id): struct<x:int,y:int>]
> {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