mingmwang commented on PR #5907:
URL: 
https://github.com/apache/arrow-datafusion/pull/5907#issuecomment-1513313446

   I will take a look. Usually, for un-correlated scalar subqueries, it will be 
kept as the subquery but need to do count check.
   
   WHERE  EXISTS (SELECT b FROM t2 where a>1 )
   
   rewrite to 
   
   WHERE  EXISTS (SELECT b FROM t2 where a>1 limit 2)
   
   We need to add a physical SubQueryExec.


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

Reply via email to