You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2023/04/18 02:15:00 UTC

[jira] [Resolved] (SPARK-42984) Fix test_createDataFrame_with_single_data_type.

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

Ruifeng Zheng resolved SPARK-42984.
-----------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

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

> Fix test_createDataFrame_with_single_data_type.
> -----------------------------------------------
>
>                 Key: SPARK-42984
>                 URL: https://issues.apache.org/jira/browse/SPARK-42984
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect
>    Affects Versions: 3.4.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Major
>             Fix For: 3.5.0
>
>
> PySpark raises an exception when:
> {code:python}
> >>> spark.createDataFrame(pd.DataFrame({"a": [1]}), schema="int").collect()
> Traceback (most recent call last):
> ...
> TypeError: field value: IntegerType() can not accept object (1,) in type <class 'tuple'>
> {code}
> whereas Spark Connect doesn't.



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