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.
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
refactor(table-api): unify exception type for all backends to
TableNotFound
when a table does not exist #9695refactor(table-api): unify exception type for all backends to
TableNotFound
when a table does not exist #9695Changes from 19 commits
a7b2efe
efb1381
e9604c8
c8b1bde
8a4f3c8
fe24900
c5366e4
5b0d6a6
33f2fbb
2f865da
33c7507
ea4571b
f6f3103
14bb13c
b79ca92
93f6810
71368f7
00be355
9dde9d4
4f854fe
4d9c14b
ca1f6c6
dd10ede
ba27187
1652e50
6b67f4b
6551046
c13dac9
20af342
52df21c
9fe1ed9
afccae4
33bf6a1
e501cc2
0541e17
ecc40e7
14ccba6
a087c14
1e2992f
061860a
c22979f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to get anything better than this matching, if anyone has any ideas, suggestions welcome
Check warning on line 309 in ibis/backends/flink/__init__.py
Codecov / codecov/patch
ibis/backends/flink/__init__.py#L307-L309
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this, but I'm not sure if there is a better way to get the error matching here. Suggestions welcomed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpcloud do we think this is alright for flink? It's a bit specific but I didn't find an alternative, If so I'll remove the comment here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like there's some poking around the java object that could be done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried multiple thinks, I wasn't able to land in anything better than this, I tried inspecting
e.java_exception
to get thegetSQLState
but I wasn't able. Maybe I'm missing something.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and changed this to catch the error, and then check for table existence instead of matching.
INVALID_INPUT
is way too general of a string to match on in any case.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I was commenting on the druid one...this is the flink one.
Check warning on line 315 in ibis/backends/flink/__init__.py
Codecov / codecov/patch
ibis/backends/flink/__init__.py#L315