vdk-impala: add udf hive2server user error classification #2056
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what: added a new error to be classified as user exception in the vdk-impala plugin
why: a use case came up where the following excerpt of an exception was classified as platform error:
`File "/vdk/site-packages/impala/hiveserver2.py", line 1397, in fetch
resp = self._rpc('FetchResults', req, False)
File "/vdk/site-packages/impala/hiveserver2.py", line 1085, in _rpc
err_if_rpc_not_ok(response)
File "/vdk/site-packages/impala/hiveserver2.py", line 781, in err_if_rpc_not_ok
raise HiveServer2Error(resp.status.errorMessage)
impala.error.HiveServer2Error: UDF ERROR: Decimal expression overflowed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/vdk/site-packages/vdk/internal/builtin_plugins/run/data_job.py", line 73, in run_step
step_executed = step.runner_func(step, context.job_input)`
testing: added case to the unit test