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

repr: handle subqueries that have relation as children of scalar #16

Open
yliang412 opened this issue Jan 29, 2025 · 0 comments
Open

repr: handle subqueries that have relation as children of scalar #16

yliang412 opened this issue Jan 29, 2025 · 0 comments

Comments

@yliang412
Copy link
Member

Problem

In subqueries, you might have relations as children of scalar operators. Although we are going to try to unnest the subquery in the optimizer, we should still be able to represent it in the logical plan and maybe also support directly executing the subquery without optimization.

The current IR assumes that scalar always has scalar has children, which is not the case when we add subquery support.

Suggestion

we can maybe have ScalarOperator<Scalar, Relation>, but only for the scalar operators that take in relation as children, you will have something like Subquery<Relation, Scalar>. For others, do what we have right now e.g. Add<Scalar>.

Resources

Unnesting Arbitrary Queries - Mark Raasveldt youtube slides.

Originally posted by @yliang412 in #4 (comment)

@yliang412 yliang412 mentioned this issue Jan 29, 2025
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

No branches or pull requests

1 participant