itholic commented on code in PR #39890:
URL: https://github.com/apache/spark/pull/39890#discussion_r1098150129


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -482,6 +482,12 @@
     ],
     "sqlState" : "22012"
   },
+  "DUPLICATED_MAP_KEY" : {
+    "message" : [
+      "Duplicate map key <key> was found, please check the input data. If you 
want to remove the duplicated keys, you can set <mapKeyDedupPolicy> to 
<lastWin> so that the key inserted at last takes precedence."

Review Comment:
   I believe there is not a specific reason, so the suggestion sounds 
reasonable to me.
   Let me update it!



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -482,6 +482,12 @@
     ],
     "sqlState" : "22012"
   },
+  "DUPLICATED_MAP_KEY" : {
+    "message" : [
+      "Duplicate map key <key> was found, please check the input data. If you 
want to remove the duplicated keys, you can set <mapKeyDedupPolicy> to 
<lastWin> so that the key inserted at last takes precedence."

Review Comment:
   I believe there is no specific reason, so the suggestion sounds reasonable 
to me.
   Let me update it!



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