Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1250

Allow usage of select expressions in order by, even with group by/distinct.

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 7.1
    • Fix Version/s: 7.2
    • Component/s: Query Engine
    • Labels:
      None

      Description

      We currently do not allow order by keys to reference anything other select aliases if a simple query uses distinct or group by. We could allow for the projected expressions to resolve as well.

      For example:
      select x as y from t group by x order by x
      instead of order by y

      Mondrian generates queries of this form, although I'm not sure if that's something that could be customized through Mondrian.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                shawkins Steven Hawkins
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: