| 72 | |
| 73 | template <typename InListType> |
| 74 | void AddListValueLengthKernel(ScalarFunction* func, |
| 75 | const std::shared_ptr<DataType>& out_type) { |
| 76 | auto in_type = {InputType(InListType::type_id)}; |
| 77 | ScalarKernel kernel(in_type, out_type, ListValueLength<InListType>); |
| 78 | DCHECK_OK(func->AddKernel(std::move(kernel))); |
| 79 | } |
| 80 | |
| 81 | template <> |
| 82 | void AddListValueLengthKernel<FixedSizeListType>( |