beliefer commented on a change in pull request #33535:
URL: https://github.com/apache/spark/pull/33535#discussion_r682327532



##########
File path: core/src/main/resources/error/error-classes.json
##########
@@ -29,10 +41,30 @@
     "message" : [ "Invalid pivot column '%s'. Pivot columns must be 
comparable." ],
     "sqlState" : "42000"
   },
+  "INSERTED_VALUE_NUMBER_NOT_MATCH_FIELD_NUMBER" : {
+    "message" : [ "The number of inserted values cannot match the fields." ],
+    "sqlState" : "42000"
+  },
   "INVALID_FIELD_NAME" : {
     "message" : [ "Field name %s is invalid: %s is not a struct." ],
     "sqlState" : "42000"
   },
+  "INVALID_INSERT_INTO_CONTEXT" : {
+    "message" : [ "Invalid InsertIntoContext" ],

Review comment:
       The message "Invalid InsertIntoContext" is thrown when withInsertInto 
does not match.
   
https://github.com/apache/spark/blob/de62b5ae325741e6617e9400f78c6d0fc8cea5de/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala#L267




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