Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.10.0
-
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.