MCPcopy Create free account
hub / github.com/apache/arrow / Call

Method Call

cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc:432–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430struct 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};

Callers

nothing calls this directly

Calls 4

RescaleMethod · 0.80
MoveValueUnsafeMethod · 0.80
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected