buraksenn opened a new pull request, #21265:
URL: https://github.com/apache/datafusion/pull/21265

   ## Which issue does this PR close?
   
   - Closes #20083.
   
   ## Rationale for this change
   
   Issue has details but main problem is mark columns from LeftMark joins leak 
into parent join schemas, causing `optimize_projections` optimizer to fail.
   
   ## What changes are included in this PR?
   Add a projection after embedded subquery decorrelation to strip mark 
columns, following the same pattern as `scalar_subquery_to_join`. I've seen 
this projection is merged in the final plan.
   
   ## Are these changes tested?
   Added test case for reported failure
   
   ## Are there any user-facing changes?
   
   No.


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