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 2022/11/27 19:45:14 UTC

[GitHub] [spark] MaxGekk commented on a diff in pull request #38808: [SPARK-41272][SQL] Assign a name to the error class _LEGACY_ERROR_TEMP_2019

MaxGekk commented on code in PR #38808:
URL: https://github.com/apache/spark/pull/38808#discussion_r1032999855


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -735,6 +735,11 @@
       "The <joinType> JOIN with LATERAL correlation is not allowed because an OUTER subquery cannot correlate to its join partner. Remove the LATERAL correlation or use an INNER JOIN, or LEFT OUTER JOIN instead."
     ]
   },
+  "INVALID_MAP_KEY" : {

Review Comment:
   It is too generic for the error. How about `NULL_MAP_KEY`. cc @srielau 



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -735,6 +735,11 @@
       "The <joinType> JOIN with LATERAL correlation is not allowed because an OUTER subquery cannot correlate to its join partner. Remove the LATERAL correlation or use an INNER JOIN, or LEFT OUTER JOIN instead."
     ]
   },
+  "INVALID_MAP_KEY" : {
+    "message" : [
+      "Cannot use null as map key!"

Review Comment:
   ```suggestion
         "Cannot use null as map key."
   ```



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