spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wuyi (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-30151) Issue better error message when user-specified schema not match relation schema
Date Fri, 06 Dec 2019 14:48:00 GMT
wuyi created SPARK-30151:
----------------------------

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


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


Mime
View raw message