You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "neilconway (via GitHub)" <gi...@apache.org> on 2026/05/17 16:58:40 UTC
[PR] chore: Cleanup and refactor `build_join` in `ScalarSubqueryToJoin` [datafusion]
neilconway opened a new pull request, #22316:
URL: https://github.com/apache/datafusion/pull/22316
## Which issue does this PR close?
- N/A
## Rationale for this change
This PR cleans up and refactors `build_join`, which is used as part of rewriting correlated subqueries.
## What changes are included in this PR?
* This routine only needs to handle correlated subqueries now, so simplify the code and add an assert to that effect
* Clarify variable names
* Improve comments
* Hoist a few variables outside of loops, when possible
* Use `when`, `lit` and `not` helpers to build the `CASE` expression
## Are these changes tested?
Yes, covered by existing tests.
## Are there any user-facing changes?
No, no functional changes at all.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] chore: Cleanup and refactor `build_join` in `ScalarSubqueryToJoin` [datafusion]
Posted by "neilconway (via GitHub)" <gi...@apache.org>.
neilconway commented on PR #22316:
URL: https://github.com/apache/datafusion/pull/22316#issuecomment-4509143891
@Dandandan Can we try re-adding this to the queue? Not sure why it didn't merge before, maybe there was a merge conflict.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] chore: Cleanup and refactor `build_join` in `ScalarSubqueryToJoin` [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew merged PR #22316:
URL: https://github.com/apache/datafusion/pull/22316
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org