raghavyadav01 commented on PR #26640:
URL: https://github.com/apache/datafusion/pull/26640#issuecomment-6485285389

   @alamb agreed, and I think this PR already takes that route: it adds no new 
rewrite. Today EXISTS drops an inner LIMIT even when a filter above it reads 
the limited rows, which returns wrong rows (#26629). With this change that 
shape stays correlated, so the query fails with `Physical plan does not support 
logical expression Exists` instead. Every shape that decorrelates today still 
does.
   
   @jayzhan211 thanks, applied both: the materialized CTE case and the Union 
doc cleanup, plus your two slt cases. Confirmed the first one fails without the 
fix.
   


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