Replies: 2 comments 3 replies
-
I recommend two papers:
I also wrote a post about how to unnest subqueries recently in my own project wiki, trying to classify and explain all use cases of subqueries. |
Beta Was this translation helpful? Give feedback.
-
Here's a blog written by ericfu about subqueries and the possible way to unnest the main forms of subqueries, which IMO is insightful. To implement subqueries and un-nesting in risinglight, we will need to do a lot works on most of the components such as binder (recognize the subqueries), optimizer (decide and do the unnest), executor (implement the apply operator, semi/anti join and many others, and a refactor must be done on the executor if we try to do like what HyPer does). I haven't thought of a complete plan how to achieve this but I think it's ok to begin with the simple apply (correlated join). |
Beta Was this translation helpful? Give feedback.
-
Most of the TPC-H queries have sub-queries. We should investigate how to implement this in the future.
Beta Was this translation helpful? Give feedback.
All reactions