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

Support decorrelate_subquery with disjunction #5368

Open
jackwener opened this issue Feb 23, 2023 · 2 comments
Open

Support decorrelate_subquery with disjunction #5368

jackwener opened this issue Feb 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jackwener
Copy link
Member

jackwener commented Feb 23, 2023

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Support decorrelate_subquery with disjunction.

like TPC-DS 10,35,45 query

Describe the solution you'd like

we can support mark join to support decorrelate_subquery, it's introduced in HyPer

Mark Join: In addition to outputting the connected data, it also keeps a Mark to mark the connected results of this row, such as TRUE, FALSE, or NULL.

Describe alternatives you've considered
related paper:

Parameterized Queries and Nesting Equivalencies - C Galindo-Legaria
Unnesting Arbitrary Queries - T Neumann, A Kemper
The Complete Story of Joins (inHyPer) - T Neumann, V Leis, A Kemper
Enhanced Subquery Optimizations in Oracle - S Bellamkonda
Unnesting SQL Queries in the Presence of Disjunction - P. Parízek

Additional context
https://hourim.wordpress.com/2017/08/12/unnesting-of-coalesced-subqueries/
doris old-planner issue about this. apache/doris#2830
sybase https://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc38151.1510/html/iqrefbb/CHDIHIIG.htm

@jackwener
Copy link
Member Author

cc @alamb @andygrove

@alamb
Copy link
Contributor

alamb commented Feb 23, 2023

Thanks @jackwener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants