zyuiop opened a new pull request, #23039: URL: https://github.com/apache/datafusion/pull/23039
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> - Closes #23022 ## Rationale for this change ## What changes are included in this PR? This contains two changes (which we can possibly split, I'll let reviewers judge). - `decorrelate_predicate_subquery`: if the plan is a Projection, we transform the sub-query into a Mark Join - refactor `build_join_schema` to use LogicalPlan as input: this is required because optimize_projections remove all fields from the TableScan in the mark join, which in turns makes it impossible for `mark_field` to determine the table reference to use for the mark field ## Are these changes tested? Yes ## Are there any user-facing changes? Yes, `build_join_schema`'s signature has changed. <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!-- If there are any breaking changes to public APIs, please add the `api change` label. --> api change -- 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]
