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

Validator error when resolving OVER clause of JOIN query

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      A query such as :
      select sum(t1.deptno) over(partition by t1.deptno)
      from emp t1, emp t2

      would raise exception:
      org.apache.calcite.sql.validate.SqlValidatorException: Column 'EMPNO' is ambiguous.

      Calcite cannot point the column in OVER-CLAUSE to the JOINed table.

        Attachments

          Activity

            People

            • Assignee:
              seanhychu Sean Hsuan-Yi Chu
              Reporter:
              seanhychu Sean Hsuan-Yi Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: