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

Hyukjin Kwon resolved SPARK-48248.
----------------------------------
    Fix Version/s: 3.4.4
                   3.5.2
                   4.0.0
       Resolution: Fixed

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

> Fix nested array to respect legacy conf of inferArrayTypeFromFirstElement
> -------------------------------------------------------------------------
>
>                 Key: SPARK-48248
>                 URL: https://issues.apache.org/jira/browse/SPARK-48248
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.4, 3.5.2, 4.0.0
>
>
> {code}
> >>> spark.conf.set("spark.sql.pyspark.legacy.inferArrayTypeFromFirstElement.enabled",
> >>>  True)
> >>> spark.createDataFrame([[[[1, "a"]]]])
> DataFrame[_1: array<array<string>>]
> {code}
> should infer it as an integer of array



--
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

Reply via email to