Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In some cases of FILTER correlated subqueries, the "variablesSet" didn't get passed down to RelBuilder.join() and thus a Join rel was created while it should have been a Correlate rel.
For example,
select order_id, quantity from orders o where quantity = ( select max(quantity) from orders o2 where o.item_id = o2.item_id)
Does the same apply to PROJECT and JOIN subqueries, julianhyde ?
Attachments
Attachments
Issue Links
- blocks
-
PHOENIX-2595 Upgrade Calcite-Phoenix to Calcite 1.6
- Open
- is broken by
-
CALCITE-816 Represent sub-query as a RexNode
- Closed