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

Subquery Unnesting: Exists + In Support #259

Merged
merged 57 commits into from
Dec 10, 2024
Merged

Subquery Unnesting: Exists + In Support #259

merged 57 commits into from
Dec 10, 2024

Conversation

jurplel
Copy link
Member

@jurplel jurplel commented Dec 7, 2024

  • Support uncorrelated/correlated IN (ANY) and EXISTS clauses (This should effectively make subquery unnesting feature complete!)
  • TPC-H Q4, Q16, Q20, and Q22 working
    • The remaining queries mostly seem to have plans that are too bad (Q18 has some other issue, fix in the pipeline but it still seems like the plan is too slow).

Comment on lines +70 to +71
// TODO: Check that field is of bool type
0.5 // TODO: placeholder---how can we get the selectivity?
Copy link
Member Author

@jurplel jurplel Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be addressed

Comment on lines +111 to +112
// TODO: Check that field is of bool type
0.5 // TODO: placeholder---how can we get the selectivity?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@@ -198,6 +198,8 @@ impl<
);
join_filter_selectivity
}
// TODO: Does this make sense?
Copy link
Member Author

@jurplel jurplel Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@jurplel jurplel marked this pull request as ready for review December 9, 2024 05:08
@jurplel jurplel requested review from skyzh and yliang412 December 9, 2024 05:27
Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you also please enable the newly-supported TPC-H queries in sqlplannertest? thanks :)

optd-sqlplannertest/tests/tpch/tpch-01-05.planner.sql Outdated Show resolved Hide resolved
@jurplel jurplel enabled auto-merge (squash) December 10, 2024 22:09
@jurplel jurplel merged commit 271d288 into main Dec 10, 2024
1 check passed
@jurplel jurplel deleted the bowad/unnest-exists branch December 10, 2024 22:23
yliang412 added a commit that referenced this pull request Dec 10, 2024
#259 added new yml test cases instead
of renaming the `.disabled` ones, removing them now.

Signed-off-by: Yuchen Liang <yuchenl3@andrew.cmu.edu>
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.

2 participants