You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "macpie (via GitHub)" <gi...@apache.org> on 2025/06/13 18:05:25 UTC

[D] Table Schema / Partition update via Rest Catalog [iceberg-rust]

GitHub user macpie created a discussion: Table Schema / Partition update via Rest Catalog

I am confused by if the Rest Catalog does support table updates or not. 

It seems that the catalog as a function [update_table](https://github.com/apache/iceberg-rust/blob/main/crates/catalog/rest/src/catalog.rs#L727) that takes a [TableCommit](https://github.com/apache/iceberg-rust/blob/main/crates/iceberg/src/catalog/mod.rs#L290) but the `TableCommit` as this comment:
```
/// The builder is marked as private since it's dangerous and error-prone to construct
/// [`TableCommit`] directly.
/// Users are supposed to use [`crate::transaction::Transaction`] to update table.
```

Then when going to [Transaction](https://github.com/apache/iceberg-rust/blob/main/crates/iceberg/src/transaction/mod.rs#L42) there is no function to create some kind of table update either.



Is table update just not really supported yet? Or am I doing this wrong? (my goal would be to update the schema or add some partitions)



GitHub link: https://github.com/apache/iceberg-rust/discussions/1440

----
This is an automatically sent email for issues@iceberg.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@iceberg.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [D] Table Schema / Partition update via Rest Catalog [iceberg-rust]

Posted by "macpie (via GitHub)" <gi...@apache.org>.
GitHub user macpie closed a discussion: Table Schema / Partition update via Rest Catalog

I am confused by if the Rest Catalog does support table updates or not. 

It seems that the catalog as a function [update_table](https://github.com/apache/iceberg-rust/blob/main/crates/catalog/rest/src/catalog.rs#L727) that takes a [TableCommit](https://github.com/apache/iceberg-rust/blob/main/crates/iceberg/src/catalog/mod.rs#L290) but the `TableCommit` as this comment:
```
/// The builder is marked as private since it's dangerous and error-prone to construct
/// [`TableCommit`] directly.
/// Users are supposed to use [`crate::transaction::Transaction`] to update table.
```

Then when going to [Transaction](https://github.com/apache/iceberg-rust/blob/main/crates/iceberg/src/transaction/mod.rs#L42) there is no function to create some kind of table update either.



Is table update just not really supported yet? Or am I doing this wrong? (my goal would be to update the schema or add some partitions)



GitHub link: https://github.com/apache/iceberg-rust/discussions/1440

----
This is an automatically sent email for issues@iceberg.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@iceberg.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [D] Table Schema / Partition update via Rest Catalog [iceberg-rust]

Posted by "liurenjie1024 (via GitHub)" <gi...@apache.org>.
GitHub user liurenjie1024 added a comment to the discussion: Table Schema / Partition update via Rest Catalog

Thanks @macpie for reporting this. Yes, it's not supported yet.

GitHub link: https://github.com/apache/iceberg-rust/discussions/1440#discussioncomment-13530795

----
This is an automatically sent email for issues@iceberg.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@iceberg.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org