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.

        Attachments

          Issue Links

            Activity

              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: