You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2019/12/10 12:58:00 UTC

[jira] [Assigned] (SPARK-30151) Issue better error message when user-specified schema not match relation schema

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

Wenchen Fan reassigned SPARK-30151:
-----------------------------------

    Assignee: wuyi

> Issue better error message when user-specified schema not match relation schema
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-30151
>                 URL: https://issues.apache.org/jira/browse/SPARK-30151
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: wuyi
>            Assignee: wuyi
>            Priority: Major
>
> In DataSource.resolveRelation(), when relation schema does not match user-specified schema, it raises exception and says that "$className does not allow user-specified schemas."  However, it does allow user-specified schema if it matches relation schema. Instead, we should issue a better error message to tell user what is really happening here, e.g. clarify the mismatched fields to user.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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