| 96 | struct 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 | |
| 109 | template <int64_t multiple> |
nothing calls this directly
no test coverage detected