nuno-faria opened a new pull request, #25549:
URL: https://github.com/apache/datafusion/pull/25549

   ## Which issue does this PR close?
   
   - Closes #25545.
   
   ## Rationale for this change
   
   When we have a `Filter` next to a `Projection`, we might not be able to 
unparse them at the same level if the predicate depends on columns aliased by 
the projection. For those cases, we need to add a subquery in between.
   
   ## What changes are included in this PR?
   
   - Iff any column of a `Filter` is aliased by a `Projection` directly below 
it, a subquery is added with `derive`.
   
   ## What is the testing strategy for this PR?
   
   Unit tests.
   
   ## Are there any user-facing changes?
   
   No, this only adds the subquery when it is necessary, so existing tests 
remain unchanged.
   


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