srielau commented on code in PR #39805:
URL: https://github.com/apache/spark/pull/39805#discussion_r1090958799


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -586,6 +586,12 @@
       "Detected an incompatible DataSourceRegister. Please remove the 
incompatible library from classpath or upgrade it. Error: <message>"
     ]
   },
+  "INCOMPATIBLE_JOIN_TYPES" : {
+    "message" : [
+      "The join types <joinType1> and <joinType2> are incompatible."
+    ],
+    "sqlState" : "42818"

Review Comment:
   42818 is about operators (e.g. /, * +) and unctions.
   ```suggestion
       "sqlState" : "42613"
   ```
   
   Note I think there is nothing wrong with a LATERAL on the RHS of of one of 
these joins.
   SELECT * FROM T LEFT JOIN S RIGHT JOIN LATERAL(SELECT T.c1) .... should be 
legal 
   



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