You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "vladson (via GitHub)" <gi...@apache.org> on 2025/11/30 22:22:37 UTC
[I] Full support for Hive metastore catalog [iceberg-rust]
vladson opened a new issue, #1893:
URL: https://github.com/apache/iceberg-rust/issues/1893
### What's the feature are you trying to implement?
### Problem
Right now the HMS catalog implementation is lacking some of the core features and there are others that are nice to have. Specifically, `update_table` and `register_table` and hive muticatalog support.
#### Plan
- [ ] implement update_table with support for both locking and optimistic flows
- [ ] implement register_table
- [ ] implement explicit catalog support
### Willingness to contribute
I can contribute to this feature independently
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Full support for Hive metastore catalog [iceberg-rust]
Posted by "xbattlax (via GitHub)" <gi...@apache.org>.
xbattlax commented on issue #1893:
URL: https://github.com/apache/iceberg-rust/issues/1893#issuecomment-3748438811
I've opened #2023 to implement `register_table` (task 2 from this epic).
The implementation follows the same pattern as the Glue/SQL catalogs and reuses the existing `convert_to_hive_table` helper.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Full support for Hive metastore catalog [iceberg-rust]
Posted by "xbattlax (via GitHub)" <gi...@apache.org>.
xbattlax commented on issue #1893:
URL: https://github.com/apache/iceberg-rust/issues/1893#issuecomment-3750371051
## Questions about Task 3: Explicit Catalog Support
Before implementing explicit catalog support for HMS 3.x, I have a few questions:
### 1. Backward Compatibility
The `hive_metastore` Thrift crate already has optional `catName`/`catalogName` fields in structs (`Database`, `Table`, `Partition`). If we set these fields when talking to an HMS 2.x server that doesn't support multi-catalog, will it:
- Ignore the field silently?
- Return an error?
Should we add a version check or just document that `catalog_name` config requires HMS 3.x?
### 2. Testing Environment
Testing requires an HMS 3.x instance with multi-catalog enabled. Options:
- Add integration test that only runs if HMS 3.x is detected
- Unit tests only for the conversion functions
- Skip automated testing and document manual steps
What's the preferred approach for this project?
### 3. Scope Clarification
The Java Iceberg `HiveCatalog` doesn't currently propagate catalog names to HMS either (the `name` field is just for identification). Is the goal here to:
- Match Java behavior (catalog name for identification only)?
- Go beyond Java and actually use HMS 3.x multi-catalog feature?
@vladson - as the issue author, do you have a specific use case in mind?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Full support for Hive metastore catalog [iceberg-rust]
Posted by "pecsorabs (via GitHub) via issues" <is...@iceberg.apache.org>.
pecsorabs commented on issue #1893:
URL: https://github.com/apache/iceberg-rust/issues/1893#issuecomment-6628150595
I'd like to pick up task 1, `update_table` for the HMS catalog, unless someone is already on it.
We have a working implementation outside this repo. [faucet-stream](https://github.com/faucet-hq/faucet-stream) (Apache-2.0/MIT) wraps `HmsCatalog` to commit through the metastore, and its integration tests run against an `apache/hive:3.1.3` standalone metastore. We'd rather drop that wrapper and use `HmsCatalog` directly, so I'd like to bring the implementation here.
It follows Java's `HiveTableOperations` with locking on:
1. Take an `EXCLUSIVE` table lock (`lock`, then poll `check_lock` with backoff while it's `WAITING`, up to a timeout).
2. Load the table, check the commit's requirements, and apply its updates. The new metadata goes to `metadata/<version+1>-<uuid>.metadata.json`.
3. Write that file through the table's `FileIO`.
4. Re-read the metastore entry and refuse unless `metadata_location` is still the one the commit was based on.
5. `alter_table` to the new `metadata_location`, set `previous_metadata_location`, and pass `DO_NOT_UPDATE_STATS`.
6. `unlock`, also on every error path.
A commit that loses the race (the table moved, the lock was refused or never granted, or a requirement no longer holds) returns `CatalogCommitConflicts`, so `Transaction::commit` retries under the `commit.retry.*` properties. A failure after `alter_table` was sent but not answered is ambiguous and is not marked retryable, since a retry could append the same data files twice. Before returning a conflict, the commit deletes the metadata file it staged.
Without tests it's roughly 550 lines, so to stay within the PR size guideline I'd split it:
- **PR 1:** `update_table` with the lock flow above, a lock-timeout catalog property (Java uses `iceberg.hive.lock-timeout-ms`), unit tests for the lock-state handling and the optimistic check, and an integration test against the existing Hive test setup (concurrent commits from two catalogs, one losing and retrying).
- **PR 2:** a lockless path for Hive 4, using `alter_table` with an expected-parameter environment context as an atomic compare-and-set on `metadata_location` (Java's `iceberg.engine.hive.lock-enabled=false`). It builds on #3187.
Two questions before I start:
- Should this wait for #3104 (HMS configuration from properties), or go in first?
- Any preference on the lock-timeout property name? I'd match Java's `iceberg.hive.lock-timeout-ms` unless there's a reason not to.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Full support for Hive metastore catalog [iceberg-rust]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1893:
URL: https://github.com/apache/iceberg-rust/issues/1893#issuecomment-4964175688
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org