You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/05/23 18:50:00 UTC

[jira] [Commented] (SPARK-39262) Correct error messages when creating DataFrame from an RDD with the first element `0`

    [ https://issues.apache.org/jira/browse/SPARK-39262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541103#comment-17541103 ] 

Apache Spark commented on SPARK-39262:
--------------------------------------

User 'xinrong-databricks' has created a pull request for this issue:
https://github.com/apache/spark/pull/36640

> Correct error messages when creating DataFrame from an RDD with the first element `0`
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-39262
>                 URL: https://issues.apache.org/jira/browse/SPARK-39262
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.4.0
>            Reporter: Xinrong Meng
>            Priority: Major
>
> Correct error messages when creating DataFrame from an RDD with the first element `0`.
> Previously, we raise a ValueError "The first row in RDD is empty, can not infer schema" in such case.
> However, a TypeError "Can not infer schema for type: <class 'int'>" should be raised instead.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org