Skip to content

feat(catalog): Implement update_table for Hive metastore catalog#1894

Closed
vladson wants to merge 3 commits into
apache:mainfrom
vladson:hms_update_table
Closed

feat(catalog): Implement update_table for Hive metastore catalog#1894
vladson wants to merge 3 commits into
apache:mainfrom
vladson:hms_update_table

Conversation

@vladson

@vladson vladson commented Nov 30, 2025

Copy link
Copy Markdown

Which issue does this PR close?

What changes are included in this PR?

update_table for HMS catalog.
The implementation is based on other iceberg implementations, Trino and Hive code bases.

Are these changes tested?

The existing tests were modified, and extensive manual tests were performed.

@vladson vladson marked this pull request as ready for review December 7, 2025 14:28
@vladson

vladson commented Dec 19, 2025

Copy link
Copy Markdown
Author

Hi team, I would appreciate it if anyone could take a look at the PR, it's my first in iceberg-rust, but I hope it is in the spirit of the project.

@liurenjie1024 liurenjie1024 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @vladson for this pr, just finished first round of review.

Comment thread crates/catalog/hms/Cargo.toml Outdated
metainfo = { workspace = true }
motore-macros = { workspace = true }
volo = { workspace = true }
whoami = "1.6.1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We manage dependencies in workspace's root cargo.tom.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hey, thank you @liurenjie1024 moved whoami to the main Cargo.

let db_name = validate_namespace(ident.namespace())?;
let tbl_name = ident.name.clone();

if self.config.props.contains_key(HMS_HIVE_LOCKS_DISABLED) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not a hive expert, but I would suggest to start with pessimistic version only first.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hey, I had some experience with Hive metastore, both in setting up and using it. The thing is that many are using optimistic locking, and the problem is that in a system with multiple clients, all must use no hive locks flow, as otherwise there is a risk of data loss.
My implementation of the environment context is in line with Trino and others.

@liurenjie1024 liurenjie1024 self-requested a review December 22, 2025 04:58
Partial implementation of HMS traditional commit

stabilising

fix issues with hms lock flow

refactoring for optimistic locks

address format
@vladson

vladson commented Dec 26, 2025

Copy link
Copy Markdown
Author

Thank you for the review; I appreciate your effort!
I'm looking forward to addressing any changes.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Feb 27, 2026
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions Bot closed this Mar 6, 2026
@miaht94

miaht94 commented Jun 11, 2026

Copy link
Copy Markdown

Hi, is there any updates for this pull request ?

@vladson

vladson commented Jun 11, 2026

Copy link
Copy Markdown
Author

Hi, I'll update it on weekend to be green. I believe we need it...

@vladson

vladson commented Jun 21, 2026

Copy link
Copy Markdown
Author

reopened as #2684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants