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

Make commit_table public #1112

Merged
merged 7 commits into from
Sep 5, 2024
Merged

Make commit_table public #1112

merged 7 commits into from
Sep 5, 2024

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Aug 28, 2024

This was brought up earlier, and I think this is a good idea. I changed the signature to also pass in the table.

Copy link
Collaborator

@sungwy sungwy left a comment

Choose a reason for hiding this comment

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

Hi @Fokko - thank you for driving this! In agreement with you on the updated input params for the method as well. 👍 I left a few nits, hope you find them helpful

pyiceberg/catalog/glue.py Outdated Show resolved Hide resolved
pyiceberg/catalog/hive.py Outdated Show resolved Hide resolved
pyiceberg/catalog/hive.py Outdated Show resolved Hide resolved
pyiceberg/catalog/rest.py Outdated Show resolved Hide resolved
pyiceberg/catalog/rest.py Outdated Show resolved Hide resolved
Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

Added some minor comments.
Also want to point out that _commit_table doc used to be "Update one or more tables." and is now changed to support updating only 1 table.

Any idea how we can safely deprecate the _commit_table function?

pyiceberg/catalog/rest.py Outdated Show resolved Hide resolved
pyiceberg/table/__init__.py Outdated Show resolved Hide resolved
pyiceberg/table/__init__.py Outdated Show resolved Hide resolved
tests/catalog/test_base.py Outdated Show resolved Hide resolved
pyiceberg/catalog/rest.py Outdated Show resolved Hide resolved
pyiceberg/catalog/glue.py Outdated Show resolved Hide resolved
pyiceberg/catalog/hive.py Outdated Show resolved Hide resolved
pyiceberg/catalog/sql.py Outdated Show resolved Hide resolved
Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM!

@sungwy
Copy link
Collaborator

sungwy commented Sep 3, 2024

Hi @Fokko

Just a heads up - my apologies for adding in a merge conflict here. I merged in #820 first because it had been open for quite some time. Could we rebase this branch from the updated main?

@Fokko
Copy link
Contributor Author

Fokko commented Sep 5, 2024

@sungwy No problem at all, I've pulled in latest master 👍

@sungwy sungwy merged commit 052a9cd into apache:main Sep 5, 2024
7 checks passed
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
* Make `commit_table` public

* Comments

* Thanks Kevin!

* Update tests
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
* Make `commit_table` public

* Comments

* Thanks Kevin!

* Update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants