[ 
https://issues.apache.org/jira/browse/CALCITE-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15099031#comment-15099031
 ] 

Julian Hyde commented on CALCITE-1045:
--------------------------------------

Work in progress at 
https://github.com/julianhyde/calcite/tree/1045-correlated-project.

> Decorrelate sub-queries in Project and Join
> -------------------------------------------
>
>                 Key: CALCITE-1045
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1045
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>
> In CALCITE-816 we created a representation of sub-query in the relational 
> algebra, RexSubQuery, so that we could defer expanding and de-correlating 
> sub-queries until after SqlNode tree has been converted to RelNode tree. But 
> the RelDecorrelator can only reliably handle sub-queries that occur in a 
> Filter (such as WHERE EXISTS or WHERE IN).
> This task would except RelDecorrelator to handle sub-queries in Project 
> (which occur with scalar sub-queries in the SELECT clause) and sub-queries in 
> Join (which occur with scalar sub-queries in the ON clause of a JOIN).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to