Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdk-impala: add udf hive2server user error classification #2056

Merged
merged 1 commit into from
May 12, 2023

Conversation

mrMoZ1
Copy link
Contributor

@mrMoZ1 mrMoZ1 commented May 11, 2023

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

@ivakoleva ivakoleva merged commit 6749601 into main May 12, 2023
@ivakoleva ivakoleva deleted the person/mzhivkov/impala-error-classification branch May 12, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants