You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zeroshade (via GitHub)" <gi...@apache.org> on 2023/08/03 23:26:01 UTC
[GitHub] [arrow] zeroshade commented on issue #36998: [Go] compute.Divide results integer value not in range error
zeroshade commented on issue #36998:
URL: https://github.com/apache/arrow/issues/36998#issuecomment-1664757532
The second argument to the division is `compute.NewDatum(math.Pow10(int(16))))` which will be a `float64` since that's the type returned by `math.Pow10`. In the case of an int64 divided by a float64, the integer gets promoted. So it first tries to cast `12345000000000000` to a float64, which is invalid because the largest integer that can be represented by a float64 is 2^53, or 9007199254740992.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org