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

Set statement handling in frontend can't handle negative numbers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.10.0
    • Fix Version/s: Impala 2.10.0
    • Component/s: Frontend
    • Labels:
      None
    • Epic Color:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: