| 1354 | } |
| 1355 | |
| 1356 | void AddNestedIfElseKernels(const std::shared_ptr<IfElseFunction>& scalar_function) { |
| 1357 | for (const auto type_id : |
| 1358 | {Type::LIST, Type::LARGE_LIST, Type::LIST_VIEW, Type::LARGE_LIST_VIEW, |
| 1359 | Type::FIXED_SIZE_LIST, Type::MAP, Type::STRUCT, Type::DENSE_UNION, |
| 1360 | Type::SPARSE_UNION, Type::DICTIONARY}) { |
| 1361 | ScalarKernel kernel({boolean(), InputType(type_id), InputType(type_id)}, LastType, |
| 1362 | NestedIfElseExec::Exec); |
| 1363 | kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE; |
| 1364 | kernel.mem_allocation = MemAllocation::NO_PREALLOCATE; |
| 1365 | kernel.can_write_into_slices = false; |
| 1366 | DCHECK_OK(scalar_function->AddKernel(std::move(kernel))); |
| 1367 | } |
| 1368 | } |
| 1369 | |
| 1370 | // Copy fixed-width values from a scalar/array into an output values buffer |
| 1371 | template <typename Type> |
no test coverage detected