dongjoon-hyun commented on issue #23783: [SPARK-26854][SQL] Support ANY/SOME subquery URL: https://github.com/apache/spark/pull/23783#issuecomment-476066269 @francis0407 and @maropu . I'm wondering if we can achieve this by adding an optimizer rule. For example, `SOME` to `EXISTS` query. How do you think about this? ```sql SELECT t1.id FROM t1 WHERE t1.id = SOME (SELECT t2.id FROM t2) ``` => ```sql SELECT t1.id FROM t1 WHERE EXISTS (SELECT t2.id FROM t2 WHERE t1.id = t2.id) ```
---------------------------------------------------------------- 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]
