You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "ella-chao (via GitHub)" <gi...@apache.org> on 2025/10/15 17:29:59 UTC
[I] bug: TruncateTransform produces unexpected value when input is a negative int32 or int64 [iceberg-go]
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: 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] bug: TruncateTransform produces unexpected value when input is a negative int32 or int64 [iceberg-go]
Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade closed issue #603: bug: TruncateTransform produces unexpected value when input is a negative int32 or int64
URL: https://github.com/apache/iceberg-go/issues/603
--
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