Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2149

Operators in Impala expressions have unusual precedence

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Impala includes operators like !, ||, &&, &, |, that are not part of standard SQL. These should probably follow precedence rules similar to the languages from which they're taken, but they often don't currently.

      E.g.
      !x = y parses as !(x = y) rather than (!x) = y
      ~x + y parses as

      x * y | z parses as x * (y | z) rather than (x * y) | z

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            tarmstrong Tim Armstrong

            Dates

              Created:
              Updated:

              Slack

                Issue deployment