kinolaev opened a new pull request, #13860:
URL: https://github.com/apache/iceberg/pull/13860

   This PR expands width argument of truncate function from int to long. In my 
case I have long ids like `250812686421393265` and I want to use first six 
digits as a partition key. I've tried `truncate(1000000000000, id)` transform, 
but it didn't work in 1.9.2 because 1000000000000 is greater than 
Integer.MAX_VALUE.
   
   Seems like the change is not breaking. I've tested, a table created and 
partitioned with the patched version of spark 3.5 is still readable if width is 
less than Integer.MAX_VALUE.
   
   I didn't find in the spec that width must be less than Integer.MAX_VALUE, so 
I guess it's not a breaking change from that perspective either.


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