| 44 | namespace { |
| 45 | |
| 46 | Status CastIntegerToInteger(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 47 | const auto& options = checked_cast<const CastState*>(ctx->state())->options; |
| 48 | if (!options.allow_int_overflow) { |
| 49 | RETURN_NOT_OK(IntegersCanFit(batch[0].array, *out->type())); |
| 50 | } |
| 51 | CastNumberToNumberUnsafe(batch[0].type()->id(), out->type()->id(), batch[0].array, |
| 52 | out->array_span_mutable()); |
| 53 | return Status::OK(); |
| 54 | } |
| 55 | |
| 56 | Status CastFloatingToFloating(KernelContext*, const ExecSpan& batch, ExecResult* out) { |
| 57 | CastNumberToNumberUnsafe(batch[0].type()->id(), out->type()->id(), batch[0].array, |
nothing calls this directly
no test coverage detected