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

The order of resolving undefined aliases

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • SQL - Translator SQL++
    • None

    Description

      The order of resolving an undefined alias should be:

      Have different resolving mechanism for FROM/UNNEST/Quantifier and others:
      – FROM/JOIN/UNNEST/Quantifier: 1. user-defined variables, 2. Datasets
      – Others: 1. user-defined variables, 2. field-accesses, 3. Datasets

      Always resolving to a dataset as the last option can preserve query stability such that the query semantics will not be perturbed by adding/removing a dataset.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            buyingyi Yingyi Bu
            buyingyi Yingyi Bu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment