-
Notifications
You must be signed in to change notification settings - Fork 162
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
Introduce the ability to express a correlated subquery #119
Comments
For reference, the following tpch queries require a subquery (or decorrelation): 2, 4, 11, 15, 16, 17, 18, 20, 21. |
After looking into this a bit there are a number of things to address: What is the expression type of a subquery (correlated or not) used in, for example, a
|
My inclination is definitely towards a new type of expression. (Let's ignore the proto impl issue for the moment.) In terms of determining the level, do you think there is a way of defining this with relative numbering? I'd really prefer that over the naming scheme that things like Calcite seem to use. |
We should introduce a way to express a correlated subquery. We need to come up with the best way to represent this. Some prior art:
[dynamic variable].[field name]
e.g.$cor0.P_PARTKEY
)Other examples people think that should provide inspiration?
The text was updated successfully, but these errors were encountered: