You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takuya Ueshin (Jira)" <ji...@apache.org> on 2023/03/30 21:24:00 UTC

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

Takuya Ueshin created SPARK-42984:
-------------------------------------

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


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