| 642 | } |
| 643 | |
| 644 | void AddStructFieldKernels(ScalarFunction* func) { |
| 645 | for (const auto in_type : {Type::STRUCT, Type::DENSE_UNION, Type::SPARSE_UNION}) { |
| 646 | ScalarKernel kernel({in_type}, ResolveStructFieldType, StructFieldFunctor::Exec, |
| 647 | OptionsWrapper<StructFieldOptions>::Init); |
| 648 | kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE; |
| 649 | kernel.mem_allocation = MemAllocation::NO_PREALLOCATE; |
| 650 | DCHECK_OK(func->AddKernel(std::move(kernel))); |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | const FunctionDoc struct_field_doc( |
| 655 | "Extract children of a struct or union by index", |
no test coverage detected