Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2248

SQPP: Disallow the use of column aliases in GROUP BY/HAVING clauses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • SQL - Translator SQL++
    • None

    Description

      Column aliases introduced by SELECT clause (AS ...) are not variables and therefore should not be referenceable from clauses that are logically processed before SELECT (such as GROUP BY and HAVING). We still allow column aliases to be referenced from ORDER BY clauses.

      Attachments

        Activity

          People

            dlychagin-cb Dmitry Lychagin
            dlychagin-cb Dmitry Lychagin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: