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

Set statement handling in frontend can't handle negative numbers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.10.0
    • Impala 2.10.0
    • Frontend
    • None
    • ghx-label-3

    Description

      Reproduction: Include the following code above a query in a .test file:

      ---- QUERY
      set scratch_limit=0;
      select ....
      

      The test will fail with an error like:

      MainThread: Unexpected exception when executing SET SCRATCH_LIMIT=-1 : ImpalaBeeswaxException:
       INNER EXCEPTION: <class 'beeswaxd.ttypes.BeeswaxException'>
       MESSAGE: AnalysisException: Syntax error in line 1:
      

      The root cause is that the grammar for the set statement doesn't allow a negation.

      This doesn't affect impala-shell because it uses a different mechanism for query options.

      Attachments

        Activity

          People

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: