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

Misleading SQL++ error message when variables are undefined

    XMLWordPrintableJSON

Details

    Description

      This query:
      SELECT u.name AS uname, m.message AS message
      FROM GleambookUsers u
      UNNEST GleambookMessages m
      WHERE m.authorId = user.id;

      Yields this error message:
      Cannot resolve ambiguous alias (variable) reference for identifier user [AlgebricksException]

      The reference is undefined, not ambiguous, in this case.

      Attachments

        Activity

          People

            buyingyi Yingyi Bu
            dtabass Michael J. Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: