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

Wenchen Fan resolved SPARK-30151.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

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

> 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
>             Fix For: 3.0.0
>
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to