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

[plugins][vdk-impala] Improve error handling to handle view errors #717

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Feb 18, 2022

Currently, the impala error handling logic fails to properly handle
TableAlreadyExist exceptions, in cases where these are caused while processing
CREATE VIEW sql queries.

This change modifies the error handling logic to properly handle exceptions
caused while processing CREATE VIEW queries.

Testing Done: Added unit test.

Signed-off-by: Andon Andonov andonova@vmware.com

Copy link
Collaborator

@antoniivanov antoniivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should note that I am not big fan of regexes on strings that can have so many different combinations. The regex doesn't handle comments or if "create" is in a literal string.

But handling this is outside of the goal of this PR.

@doks5 doks5 force-pushed the person/andonova/impala-bugfix branch 2 times, most recently from 73c714b to 901196e Compare February 19, 2022 10:29
…errors

Currently, the impala error handling logic fails to properly handle
TableAlreadyExist exceptions, in cases where these are caused while processing
`CREATE VIEW` sql queries.

This change modifies the error handling logic to properly handle exceptions
caused while processing `CREATE VIEW` queries.

Testing Done: Added unit test.

Signed-off-by: Andon Andonov <andonova@vmware.com>
@doks5 doks5 force-pushed the person/andonova/impala-bugfix branch from 901196e to 8d75731 Compare February 19, 2022 11:17
@doks5
Copy link
Contributor Author

doks5 commented Feb 19, 2022

I should note that I am not big fan of regexes on strings that can have so many different combinations. The regex doesn't handle comments or if "create" is in a literal string.

But handling this is outside of the goal of this PR.

Agree, I'll think about some improvements in the future.
Thank you

@doks5 doks5 merged commit 53bf5a9 into main Feb 19, 2022
@doks5 doks5 deleted the person/andonova/impala-bugfix branch February 19, 2022 13:15
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.

None yet

3 participants