You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Empty snapshot ID should be Null instead of -1 #352
From Java 1.5 and later this is fixed. For older version of Java, the current-snapshot-id is required. We solved this by setting a flag: apache/iceberg-python#473
@Fokko , @liurenjie1024
what changes are we looking for ?
Since rust is using option to hold snapshot id internally, but writing as -1 for V2 manifest files.
Does it need similar changes ( some variable ) as iceberg-python or empty snapshot id as -1 looks valid for rust.
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.
Activity
s-akhtar-baig commentedon Apr 25, 2024
@Fokko, can you please assign this to me? Thanks!
Fokko commentedon Apr 25, 2024
@s-akhtar-baig With pleasure 🙌
gupteaj commentedon May 6, 2024
@Fokko , @liurenjie1024
what changes are we looking for ?
Since rust is using option to hold snapshot id internally, but writing as -1 for V2 manifest files.
Does it need similar changes ( some variable ) as iceberg-python or empty snapshot id as -1 looks valid for rust.
liurenjie1024 commentedon May 24, 2024
I took a look the code and found that maybe we don't need to change anything since we already handled this case:
iceberg-rust/crates/iceberg/src/spec/table_metadata.rs
Line 678 in 6f85456
But it would be better to add some tests for it.
github-actions commentedon Oct 13, 2025
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.
liurenjie1024 commentedon Oct 14, 2025
A bug to fix.
fix(spec): clean up -1 snapshot ID sentinel usage and add deserializa…
fix(spec): clean up -1 snapshot ID sentinel usage and add deserializa…
Sync upstream: apache/iceberg-rust 7ef4063 -> 6077a42 (#26)