Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14885

Calcite engine. Allow grouping by alias or ordinal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Currently, grouping by alias or ordinal is not supported, but sometimes it can be handy.

      Some DB vendors support this feature (PostgreSQL, MySQL), but some not (Oracle, MSSQL). In the current Ignite H2-based SQL engine, this feature is not supported. We should decide do we need it in Ignite with calcite-based SQL engine.

      This feature can be easily enabled by redefining SqlConformance#isGroupByAlias, SqlConformance#isGroupByOrdinal

      Affected tests:
      src/test/sql/aggregate/group/test_group_by.test
      src/test/sql/aggregate/group/test_group_by_alias.test
      And many other.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: