| 39 | |
| 40 | template <typename Type> |
| 41 | Status ListFlatten(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 42 | auto recursive = OptionsWrapper<ListFlattenOptions>::Get(ctx).recursive; |
| 43 | typename TypeTraits<Type>::ArrayType list_array(batch[0].array.ToArrayData()); |
| 44 | |
| 45 | auto pool = ctx->memory_pool(); |
| 46 | ARROW_ASSIGN_OR_RAISE(auto result, (recursive ? list_array.FlattenRecursively(pool) |
| 47 | : list_array.Flatten(pool))); |
| 48 | |
| 49 | out->value = std::move(result->data()); |
| 50 | return Status::OK(); |
| 51 | } |
| 52 | |
| 53 | struct ListParentIndicesArray { |
| 54 | KernelContext* ctx; |
nothing calls this directly
no test coverage detected