You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/08/04 06:36:28 UTC
[GitHub] [spark] beliefer commented on a change in pull request #33535: [SPARK-36108][SQL] Refactor first set of 20 query parsing errors to use error classes
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org