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

Case-insensitive table aliases and GROUP BY

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
      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.

        Issue Links

          Activity

          Show
          julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/787a9a1b .
          Hide
          jcamachorodriguez Jesus Camacho Rodriguez added a comment -

          Resolved in release 1.9.0 (2016-09-22)

          Show
          jcamachorodriguez Jesus Camacho Rodriguez added a comment - Resolved in release 1.9.0 (2016-09-22)

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development