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

Validator error when resolving OVER clause of JOIN query

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0-incubating
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment