Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.1-incubating
-
None
-
None
Description
The subquery unnesting code relies on a certain structure of the query tree, with join and groupby nodes arranged in a certain way. If we have CommonSubExprRef nodes present in the tree, the unnesting logic doesn't recognize some of the patterns and subquery unnesting doesn't take place.
Hopefully we can somehow ignore these extra nodes in subquery unnesting.