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

Ruifeng Zheng updated SPARK-50050:
----------------------------------
    Description: 
 

In [4]: spark.range(1).select(sf.lit(np.array([], np.int32))).schema
Out[4]: StructType([StructField('array()', ArrayType(NullType(), False), 
False)])

 

it should be ArrayType(IntegerType...)

> Spark Connect should support empty ndarray
> ------------------------------------------
>
>                 Key: SPARK-50050
>                 URL: https://issues.apache.org/jira/browse/SPARK-50050
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect, PySpark
>    Affects Versions: 4.0.0
>            Reporter: Ruifeng Zheng
>            Priority: Major
>
>  
> In [4]: spark.range(1).select(sf.lit(np.array([], np.int32))).schema
> Out[4]: StructType([StructField('array()', ArrayType(NullType(), False), 
> False)])
>  
> it should be ArrayType(IntegerType...)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to