| 188 | } |
| 189 | |
| 190 | Status CastFloatingToInteger(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 191 | const auto& options = checked_cast<const CastState*>(ctx->state())->options; |
| 192 | CastNumberToNumberUnsafe(batch[0].type()->id(), out->type()->id(), batch[0].array, |
| 193 | out->array_span_mutable()); |
| 194 | if (!options.allow_float_truncate) { |
| 195 | RETURN_NOT_OK(CheckFloatToIntTruncation(batch[0], *out)); |
| 196 | } |
| 197 | return Status::OK(); |
| 198 | } |
| 199 | |
| 200 | // ---------------------------------------------------------------------- |
| 201 | // Implement fast integer to floating point cast |
nothing calls this directly
no test coverage detected