hughess commented on issue #13156: URL: https://github.com/apache/datafusion/issues/13156#issuecomment-7245172549
For outer joins (and for semi/anti, which drop the extracted filters when they unparse as WHERE EXISTS), we are rendering a filter-bearing scan input as a derived table instead of folding its filters into ON: (SELECT ... FROM t AS a WHERE f) AS a ON does not remove preserved-side rows, so a filter placed there does not hide them. Inner joins are unchanged (the filter stays in WHERE, where it is equivalent). The derived table is valid for every join type and dialect we push. Exit criterion on our side: drop the patch when this issue ships that outer-join handling. Happy to turn this into a PR against main if that is useful. -- 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]
