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

Method Call

cpp/src/arrow/compute/kernels/base_arithmetic_internal.h:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96struct AddTimeDuration {
97 template <typename T, typename Arg0, typename Arg1>
98 static T Call(KernelContext*, Arg0 left, Arg1 right, Status* st) {
99 T result =
100 arrow::internal::SafeSignedAdd(static_cast<T>(left), static_cast<T>(right));
101 if (result < 0 || multiple <= result) {
102 *st = Status::Invalid(result, " is not within the acceptable range of ", "[0, ",
103 multiple, ") s");
104 }
105 return result;
106 }
107};
108
109template <int64_t multiple>

Callers

nothing calls this directly

Calls 2

SafeSignedAddFunction · 0.50
InvalidFunction · 0.50

Tested by

no test coverage detected