Skip to content

[WIP] refactor: framework for subquery decorrelation #16016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

duongcongtoai
Copy link
Contributor

@duongcongtoai duongcongtoai commented May 10, 2025

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Purpose of this PR is to unify the optimizor for different subquery types (exists, scalar, in etc) as one of the step mentioned in #5492 but at the same time provide a skeleton to support more complex decorrelation logic

the PR is in draft state, and some existing decorrelation is not supported yet (pipeline breaker such as aggregation, window function ...)

Items to fix:

  • subquery alias
  • support non-linear operator

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels May 10, 2025
@duongcongtoai duongcongtoai changed the title refactor: framework for subquery unnesting [WIP] refactor: framework for subquery decorrelation May 10, 2025
@alamb
Copy link
Contributor

alamb commented May 12, 2025

FYI @irenjj

@xudong963 xudong963 self-requested a review May 14, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

General framework to decorrelate the subqueries
2 participants