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

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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 7.2
    • 7.1
    • Query Engine
    • None

      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.

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: