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
Glue catalog commit table #140
Glue catalog commit table #140
Changes from 35 commits
d53785a
274b91b
8e8d39d
c3e1311
2b7a7d1
4fc25df
facb43b
ce4311f
116c6fd
66a4f46
2882d0d
8a8d4ff
70b64d8
1cfe9d2
252dc36
501e7a9
7afe318
f769101
4282d37
94cfc69
bb58e09
6d4efc8
5efb155
413935e
fe7da26
e8666dc
52ceaf8
8dfaf93
5a23638
ccb787c
8a29796
5e78af9
93f2cec
6932cee
0d38337
0ad4909
dccad75
b967284
bf06d26
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.
Should we also return a more friendly error in the off chance that new_version is
None
?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.
Thanks for the suggestion! Since this is an internal method, we can rely on the type check to ensure new_version is never None. I think one benefit of doing type-checking is that it reduces the number of
None
checks in our code. Also, I've incorporated your suggested change to the error message.Please let me know if you think the type-check is not enough and we'd better do the None-check here. Thanks!
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.
Should we also gracefully return
-1
ifmetadata_location
happens to be undefined?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.
Similar reason as above, since this is an internal method, I think we can rely on the type-check to ensure
metadata_location
is notNone
. But please let me know if you think type-check is not enough.