Hyukjin Kwon created SPARK-48248:
------------------------------------

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


{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