| 430 | struct IntegerToDecimal { |
| 431 | template <typename OutValue, typename IntegerType> |
| 432 | OutValue Call(KernelContext*, IntegerType val, Status* st) const { |
| 433 | auto maybe_decimal = OutValue(val).Rescale(0, out_scale_); |
| 434 | if (ARROW_PREDICT_TRUE(maybe_decimal.ok())) { |
| 435 | return maybe_decimal.MoveValueUnsafe(); |
| 436 | } |
| 437 | *st = maybe_decimal.status(); |
| 438 | return OutValue{}; |
| 439 | } |
| 440 | |
| 441 | int32_t out_scale_; |
| 442 | }; |
nothing calls this directly
no test coverage detected