aokolnychyi commented on code in PR #41448:
URL: https://github.com/apache/spark/pull/41448#discussion_r1221834754


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1513,6 +1513,13 @@
       "Parse Mode: <failFastMode>. To process malformed records as null 
result, try setting the option 'mode' as 'PERMISSIVE'."
     ]
   },
+  "MERGE_CARDINALITY_VIOLATION" : {
+    "message" : [
+      "The ON search condition of the MERGE statement matched a single row 
from the target table with multiple rows of the source table.",
+      "This could result in the target row being operated on more than once 
with an update or delete operation and is not allowed."
+    ],
+    "sqlState" : "23000"

Review Comment:
   If I remember correctly, the SQL standard reserves only a few subclasses and 
all 5XX subclasses are custom so we are probably free to pick either one. In 
that case, let's use 23509 like in SAP.



-- 
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-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to