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

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • 7.2
    • 7.1
    • Query Engine
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: