You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "badalprasadsingh (via GitHub)" <gi...@apache.org> on 2026/08/04 16:08:59 UTC

[I] UpdateSpec fails to reuse historical partition field ID on V2 tables when re-adding without an explicit name [iceberg-go]

badalprasadsingh opened a new issue, #1639:
URL: https://github.com/apache/iceberg-go/issues/1639

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   On format-version-2 tables, `UpdateSpec.partitionField` only reuses a previously-deleted partition field's ID when a non-empty, matching name is supplied. When a field is re-added without an explicit name (letting Iceberg auto-generate the partition name), the historical lookup is skipped and a brand-new field ID is allocated.
   
   e.g.,
   1. Remove `id_identity`
   2. Re-add a partition on `id` with identity transform, letting iceberg name it automatically (empty name)
   
   **Expected:** the field comes back with an ID `x`, name `id_identity`
   **Right Now:** a brand-new ID `y` is allocated, and a new name `id`


-- 
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] UpdateSpec fails to reuse historical partition field ID on V2+ tables when re-adding without an explicit name [iceberg-go]

Posted by "badalprasadsingh (via GitHub)" <gi...@apache.org>.
badalprasadsingh commented on issue #1639:
URL: https://github.com/apache/iceberg-go/issues/1639#issuecomment-5182242153

   Right now, `UpdateSpec.partitionField` only attempts to reuse a previously-removed partition field's ID on tables whose format version is **exactly** 2.
   
   We need to change the version guard in `partitionField` from `Version() == 2` to `Version() >= 2`. 
   
   Will address this fix in the same PR.


-- 
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] UpdateSpec fails to reuse historical partition field ID on V2+ tables when re-adding without an explicit name [iceberg-go]

Posted by "laskoviymishka (via GitHub)" <gi...@apache.org>.
laskoviymishka closed issue #1639: UpdateSpec fails to reuse historical partition field ID on V2+ tables when re-adding without an explicit name
URL: https://github.com/apache/iceberg-go/issues/1639


-- 
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