You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "laskoviymishka (via GitHub)" <gi...@apache.org> on 2026/05/05 19:17:23 UTC
[I] feat(table): emit null current-snapshot-id for empty v3 metadata [iceberg-go]
laskoviymishka opened a new issue, #1002:
URL: https://github.com/apache/iceberg-go/issues/1002
Parent: #589
v3 metadata expects `"current-snapshot-id": null` when no snapshot exists, not the field omitted entirely (Java precedent: [apache/iceberg#12335](https://github.com/apache/iceberg/pull/12335)). The current marshaller uses an `omitempty` JSON tag on the `*int64` `CurrentSnapshotID` field, so when it's nil the key is dropped.
For v3, emit explicit `null` instead. Cleanest shape is a custom `MarshalJSON` on the v3 metadata struct that writes the `current-snapshot-id` key with a literal `null` when the pointer is nil. v1/v2 omitempty behavior should stay (existing test fixtures use `-1` for the v1/v2 sentinel).
Golden-fixture round-trip test against a Java-produced empty v3 `metadata.json` pins the output shape.
--
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] feat(table): emit null current-snapshot-id for empty v3 metadata [iceberg-go]
Posted by "laskoviymishka (via GitHub)" <gi...@apache.org>.
laskoviymishka closed issue #1002: feat(table): emit null current-snapshot-id for empty v3 metadata
URL: https://github.com/apache/iceberg-go/issues/1002
--
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] feat(table): emit null current-snapshot-id for empty v3 metadata [iceberg-go]
Posted by "tanmayrauth (via GitHub)" <gi...@apache.org>.
tanmayrauth commented on issue #1002:
URL: https://github.com/apache/iceberg-go/issues/1002#issuecomment-4408813380
I would like to work on this issue
--
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