zeroshade commented on code in PR #13792:
URL: https://github.com/apache/arrow/pull/13792#discussion_r938032587
##########
go/arrow/scalar/scalar.go:
##########
@@ -297,6 +298,8 @@ func (s *Decimal128) CastTo(to arrow.DataType) (Scalar,
error) {
switch to.ID() {
case arrow.DECIMAL128:
return NewDecimal128Scalar(s.Value, to), nil
+ case arrow.DECIMAL256:
+ return NewDecimal256Scalar(decimal256.FromDecimal128(s.Value),
to), nil
Review Comment:
fixed calling `Rescale` and `FitsInPrecision`
--
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]