fallintoplace opened a new pull request, #2515:
URL: https://github.com/apache/iceberg-go/pull/2515

   ## What
   Reject read-time casts as schema updates.
   
   ## Why
   `PromoteType` allows `string`/`binary` and `fixed[16]`/`uuid` casts. These 
are not valid Iceberg schema promotions and can reinterpret existing data.
   
   ## Implementation
   - Use `IsPromotionAllowed` for field type changes.
   - Keep v3 `unknown` promotions and the explicit incompatible-change option.
   - Cover rejected casts, valid widening, v3 `unknown`, and the override.
   
   ## References
   - [Iceberg schema evolution 
spec](https://iceberg.apache.org/spec/#schema-evolution)
   - Java 
[`SchemaUpdate.updateColumn`](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/SchemaUpdate.java#L2393-L2435)
   - Java 
[`TypeUtil.isPromotionAllowed`](https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/types/TypeUtil.java#L2918-L2959)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to