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

[Bug Fix] HiveCatalog's _commit_table need to refresh and update the metadata in a transaction #607

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

HonahX
Copy link
Contributor

@HonahX HonahX commented Apr 15, 2024

Fixes #588

Hive's alter_table does not support transactional check unless https://issues.apache.org/jira/browse/HIVE-26882 is included. Hence, we need to load and update the metadata within the lock (in a transaction) to ensure consistency

@HonahX HonahX added this to the PyIceberg 0.6.1 milestone Apr 15, 2024
Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Good one @HonahX Thanks for fixing this 👍

@Fokko Fokko merged commit aa46543 into apache:main Apr 15, 2024
7 checks passed
@Fokko
Copy link
Contributor

Fokko commented Apr 15, 2024

@HonahX Thanks for fixing this. I think we should backport this to 0.6.1 as well 👍

HonahX added a commit to HonahX/iceberg-python that referenced this pull request Apr 16, 2024
…thin transaction (apache#607)

* make refresh and update metadata in a transaction

* fix integration tests
HonahX added a commit that referenced this pull request Apr 16, 2024
…thin transaction (#607)

* make refresh and update metadata in a transaction

* fix integration 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.

Concern about possible consistency issue in HiveCatalog's _commit_table
2 participants