| 61 | } |
| 62 | |
| 63 | Status FixedSizeListValueLength(KernelContext* ctx, const ExecSpan& batch, |
| 64 | ExecResult* out) { |
| 65 | auto width = checked_cast<const FixedSizeListType&>(*batch[0].type()).list_size(); |
| 66 | const ArraySpan& arr = batch[0].array; |
| 67 | ArraySpan* out_arr = out->array_span_mutable(); |
| 68 | int32_t* out_values = out_arr->GetValues<int32_t>(1); |
| 69 | std::fill(out_values, out_values + arr.length, width); |
| 70 | return Status::OK(); |
| 71 | } |
| 72 | |
| 73 | template <typename InListType> |
| 74 | void AddListValueLengthKernel(ScalarFunction* func, |