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

Validator errors when grouping by ordinals that refer to aliases

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: core
    • Labels:
      None

      Description

      In a "GROUP BY ordinal" query, validator gives invalid "Expression is not being grouped" error if column has alias.

      Patch in https://github.com/apache/calcite/pull/490.

        Activity

        Hide
        michaelmior Michael Mior added a comment -

        Resolved in release 1.14.0 (2017-10-01)

        Show
        michaelmior Michael Mior added a comment - Resolved in release 1.14.0 (2017-10-01)
        Show
        julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/d4ab1e50 .
        Hide
        julianhyde Julian Hyde added a comment -

        Reviewing and testing now.

        Show
        julianhyde Julian Hyde added a comment - Reviewing and testing now.
        Hide
        gian Gian Merlino added a comment -

        More details & patch in the linked PR. For some reason, not clear to me at this point, the error only happens if you are also ordering by an ordinal (like "group by 1 order by 1").

        Show
        gian Gian Merlino added a comment - More details & patch in the linked PR. For some reason, not clear to me at this point, the error only happens if you are also ordering by an ordinal (like "group by 1 order by 1").

          People

          • Assignee:
            julianhyde Julian Hyde
            Reporter:
            gian Gian Merlino
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development