AngersZhuuuu opened a new pull request #26431: [SPARK-29769][SQL] Support "exists/not exists" condition as all type Join's on cpndition URL: https://github.com/apache/spark/pull/26431 ### What changes were proposed in this pull request? As I show in https://issues.apache.org/jira/browse/SPARK-29769 we can't use `EXISTS/NOT EXISTS` as on condition in `LEFTE OUTER JOIN/ FULL OUTER JOIN / LEFT ANTI JOIN` This pr is to support this. ### Why are the changes needed? Support EXISTS/NOT EXISTS as join's on condition ### Does this PR introduce any user-facing change? People can use exits like ``` SELECT s1.id FROM s1 LEFT OUTER JOIN s2 ON s1.id = s2.id AND EXISTS (SELECT * from s3 where s3.id > 6) SELECT s1.id FROM s1 RIGHT OUTER JOIN s2 ON s1.id = s2.id AND EXISTS (SELECT * from s3 where s3.id > 6) SELECT s1.id FROM s1 LEFT SEMI JOIN s2 ON s1.id = s2.id AND EXISTS (SELECT * from s3 where s3.id > 6) SELECT s1.id FROM s1 LEFT ANTI JOIN s2 ON s1.id = s2.id AND EXISTS (SELECT * from s3 where s3.id > 6) SELECT s1.id FROM s1 FULL OUTER JOIN s2 ON s1.id = s2.id AND EXISTS (SELECT * from s3 where s3.id > 6) ``` ### How was this patch tested? Added UT
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
