Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5420

SqlToRel should populate the correlate id of a Project for queries with aggregates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The following query does not populate correlate id in the project when SqlToRel.expand=false:

      SELECT SUM(
        (select char_length(dname) from "scott".dept where dept.deptno = emp.empno)) as s
      FROM "scott".emp
      

      Having the correlate id populated is important for expanding nested queries.

      Attachments

        Issue Links

          Activity

            People

              jamesstarr James Starr
              jamesstarr James Starr
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: