ella-chao opened a new issue, #603:
URL: https://github.com/apache/iceberg-go/issues/603

   The iceberg spec states that for truncate transform
   > The remainder, v % W, must be positive
   
   https://iceberg.apache.org/spec/#bucket-transform-details
   
   This is not true in Go when `v` is negative, so `truncate(-1)` return 0 as 
opposed to the expected -10. I think we just need to use this formula from the 
docs
   
   > v - (((v % W) + W) % W)


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