| 404 | |
| 405 | template <typename InListType> |
| 406 | void AddListSliceKernels(ScalarFunction* func) { |
| 407 | auto inputs = {InputType(InListType::type_id)}; |
| 408 | auto output = OutputType{MakeListSliceResolve}; |
| 409 | ScalarKernel kernel(inputs, output, ListSlice<InListType>::Exec, |
| 410 | OptionsWrapper<ListSliceOptions>::Init); |
| 411 | kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE; |
| 412 | kernel.mem_allocation = MemAllocation::NO_PREALLOCATE; |
| 413 | DCHECK_OK(func->AddKernel(std::move(kernel))); |
| 414 | } |
| 415 | |
| 416 | void AddListSliceKernels(ScalarFunction* func) { |
| 417 | AddListSliceKernels<ListType>(func); |
no test coverage detected