kbendick commented on issue #4849:
URL: https://github.com/apache/iceberg/issues/4849#issuecomment-1146735641

   But TLDR is that downcasting from long -> int is not safe.
   
   It could break existing data in the table.
   
   If you’re _sure_ that the change is allowed, I’d suggest you use the Java 
API to allow for incompatible changes.
   
   Even with `overwritePartitions()`, there could be data in _other_partitions 
that has true long types that don’t fit into int.
   
   I’m going to close this issue as this is the expected behavior and 
downcasting in an unsafe way is not something `mergeSchema` should do on the 
users behalf.
   
   You can use the Java API to allow for incompatible schema changes (at your 
own risk as long -> int is a lossy conversion for values greater than INT_MAX). 
Feel free to open a new issue if you still have issues 🙂 


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