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

Case-insensitive table aliases and GROUP BY

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • None
    • None

    Description

      When running in case-insensitive mode, GROUP BY wrongly thinks table aliases of different case are different. For example,

      SELECT deptno
      FROM Emp
      GROUP BY emp.deptno
      

      throws Expression 'deptno' is not being grouped but this is wrong; it is a valid query, because Emp and emp are equivalent in a case-insensitive context.

      Attachments

        Issue Links

        Activity

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

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment