You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "srielau (via GitHub)" <gi...@apache.org> on 2023/01/30 17:53:34 UTC
[GitHub] [spark] srielau commented on a diff in pull request #39805: [SPARK-42238][SQL] Introduce new error class: `INCOMPATIBLE_JOIN_TYPES`
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: 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