-
Notifications
You must be signed in to change notification settings - Fork 3k
Python: First version of the rest catalog #5287
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
01842e3
Python: Add REST Catalog
Fokko 5a73bd4
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko 776a9ea
First few are working
Fokko ba29add
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko d55fc81
.
Fokko 7568a3b
Add load table
Fokko 671cc07
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko f1a986e
Python: First version of the REST catalog
Fokko a51f853
Process comments
Fokko 931c3e3
Remove the rough edges
Fokko 736df3f
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko 49acfb0
Revert unrelated changes
Fokko c6dc7cd
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko 4f373f2
Add the missing alias
Fokko 1a7faa9
pre-commit
Fokko 9ddc4e7
Comments
Fokko 34fe404
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko 3f538c6
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko b184a48
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko 37763bf
Add version to the headers
Fokko c27ef21
Merge branch 'master' of https://github.com/apache/iceberg into fd-re…
Fokko 5283691
Bit more cleanup
Fokko 62d823b
Just return the table
Fokko b48722f
Allow both client_{id,secret} and token
Fokko dc79b27
Comments
Fokko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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 similarly default
propertiesto{}?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 would like that, but that's actually a code smell in Python (or a quirk in the language). The default
{}will be a reference to a single object, if you mutate that one, the next time the default value is being assigned, it will give the reference to the same object. More info here: https://florimond.dev/en/posts/2018/08/python-mutable-defaults-are-the-source-of-all-evil/ So the recommended way is just to set it to null, and then doproperties or {}in the code. This{}will then always initialize an empty dict.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.
There's no immutable dict?
Uh oh!
There was an error while loading. Please reload this page.
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.
Not in the standard lib, there is a package, or we can implement it ourselves.
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.
Maybe later, but this is fine for now.