holdenk commented on code in PR #53198:
URL: https://github.com/apache/spark/pull/53198#discussion_r2557830618


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -7334,6 +7334,15 @@
     ],
     "sqlState" : "P0001"
   },
+  "USER_SPECIFIED_AND_ACTUAL_SCHEMA_MISMATCH" : {
+    "message" : [
+      "The user-specified schema doesn't match the actual schema:",
+      "user-specified: <schema>, actual: <actualSchema>. If you're using",
+      "DataFrameReader.schema API or creating a table, please do not specify 
the schema.",
+      "Or if you're scanning an existed table, please drop it and re-create 
it."
+    ],
+    "sqlState" : "42KD7"

Review Comment:
   Maybe consider 42K03 to match 
https://spark.apache.org/docs/latest/sql-error-conditions.html#data-source-table-schema-mismatch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to