MCPcopy Create free account
hub / github.com/apache/arrow / AddStructFieldKernels

Function AddStructFieldKernels

cpp/src/arrow/compute/kernels/scalar_nested.cc:644–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void 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
654const FunctionDoc struct_field_doc(
655 "Extract children of a struct or union by index",

Callers 1

RegisterScalarNestedFunction · 0.85

Calls 1

AddKernelMethod · 0.45

Tested by

no test coverage detected