You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/06 19:44:00 UTC

[jira] [Updated] (CALCITE-4366) LatticeSuggester should treat UNION / VALUES sub-expressions as tables

     [ https://issues.apache.org/jira/browse/CALCITE-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated CALCITE-4366:
------------------------------------
    Labels: pull-request-available  (was: )

> LatticeSuggester should treat UNION / VALUES sub-expressions as tables
> ----------------------------------------------------------------------
>
>                 Key: CALCITE-4366
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4366
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> LatticeSuggester should treat UNION / VALUES sub-expressions as tables, and generate a LatticeTable for each.
> If those expressions occur as a common-table expression (CTE; i.e. in the WITH clause) the LatticeTable should have the name and column names of that CTE.
> For example, given the query
> {code}
> WITH SubDept (id, name) AS (SELECT deptno, dname FROM Dept)
> SELECT *
> FROM Emp AS e
> JOIN SubDept AS d ON e.deptno = d.id
> {code}
> {{LatticeSuggester}} should generate {{LatticeTable(Emp (empno, deptno, ename, sal))}} and {{LatticeTable(SubDept (id, name))}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)