Skip to content
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

Basic support to process correlated subquery in Join filter #72

Draft
wants to merge 1 commit into
base: spiceai-43
Choose a base branch
from

Conversation

sgrebnov
Copy link

@sgrebnov sgrebnov commented Jan 8, 2025

Which issue does this PR close?

Basic support for correlated subqueries in join filters. If a correlated subquery references both the left and right parts of the join, it will fail with the error 'Unsupported subquery expressions as part of join filter expressions.'

PR uses the existing logic that is used for LogicalPlan::Filter and applies it to LogicalPlan::Join:Filter as well. Since the existing approach is based on wrapping input in a join and supports a single input only, the PR includes logic to detect if the correlated subquery is based on the left or right part of the join. It will fail if both parts are referenced.

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@sgrebnov sgrebnov changed the title Basic support for correlated subqueries in Join filters Basic support to process correlated subquery in Join filter Jan 8, 2025
@sgrebnov sgrebnov marked this pull request as draft January 8, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant