[
https://issues.apache.org/jira/browse/SPARK-54938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-54938:
-----------------------------------
Labels: pull-request-available (was: )
> Add tests for pa.array type inference
> -------------------------------------
>
> Key: SPARK-54938
> URL: https://issues.apache.org/jira/browse/SPARK-54938
> Project: Spark
> Issue Type: Sub-task
> Components: PySpark, Tests
> Affects Versions: 4.2.0
> Reporter: Ruifeng Zheng
> Priority: Major
> Labels: pull-request-available
>
> Test the inferred datatype like
> {code:java}
>
> a = pa.array([None])
> a = pa.array([1,2,3])
> a = pa.array((1,2,3))
> a = pa.array([1,2,3,None])
> a = pa.array([1, "x"])
> a = pa.array(pd.Series([1,2,3]))
> a = pa.array(np.array([1,2,3])){code}
>
> The input data should include:
> 1, nullable data;
> 2, plain python instance (list,tuple,array);
> 3, pandas instance
> 4, numpy instance
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]