You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "aditya-subrahmanyan (via GitHub)" <gi...@apache.org> on 2025/09/19 19:16:06 UTC

[I] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

aditya-subrahmanyan opened a new issue, #1697:
URL: https://github.com/apache/iceberg-rust/issues/1697

   ### Apache Iceberg Rust version
   
   0.5.1
   
   ### Describe the bug
   
   According to the [spec](https://iceberg.apache.org/spec/#version-2), the `sequence-number` field for a snapshot entry from v1 is optional/may not exist. When we try to read `metadata.json` that contains snapshots from both v1 and v2, the function fails with the following error if the v1 snapshot does not contain a `sequence-number`
   
   ```
   DataInvalid => Failed to parse json string, source: data did not match any variant of untagged enum TableMetadataEnum
   ```
   
   ### To Reproduce
   
   Using Iceberg Java SDK
   - Create table, explicitly setting format version to 1
   - Insert some rows into the table
   - Change format version to 2, this does not result in full rewrite of files/manifests
   - Add just one more row, creates file/manifest using version 2
   - Try reading the metadata in Rust, and it fails with the error
   
   ### Expected behavior
   
   Should we attempt to default the `sequence-number` to 0 (i.e. use `SnapshotV1`) to read such snapshot entries, if the `metadata.json` indicates that it belongs to v2?
   
   ### Willingness to contribute
   
   I would be willing to contribute a fix for this bug with guidance from the Iceberg community


-- 
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] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1697:
URL: https://github.com/apache/iceberg-rust/issues/1697#issuecomment-3326346312

   thanks for reporting this! can you try with the latest `main`? 
   
   i think this change here might have fix the issue already
   https://github.com/apache/iceberg-rust/commit/1397a36286eee5657cc4560637193becf9388d6d#diff-23a684ea849cc91a335d25c132755012f0225aa100fb962cc1e283186e832673R801-R802
   
   


-- 
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] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1697:
URL: https://github.com/apache/iceberg-rust/issues/1697#issuecomment-5975238722

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #1697: StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2
URL: https://github.com/apache/iceberg-rust/issues/1697


-- 
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] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

Posted by "liurenjie1024 (via GitHub)" <gi...@apache.org>.
liurenjie1024 commented on issue #1697:
URL: https://github.com/apache/iceberg-rust/issues/1697#issuecomment-3317986251

   Thanks @aditya-subrahmanyan for this bug report!


-- 
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] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1697:
URL: https://github.com/apache/iceberg-rust/issues/1697#issuecomment-4114558372

   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


Re: [I] StaticTable::from_metadata_file() fails to read metadata for a table that was upgraded from v1 to v2 [iceberg-rust]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1697:
URL: https://github.com/apache/iceberg-rust/issues/1697#issuecomment-5746407074

   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