| 1540 | |
| 1541 | template <typename Impl> |
| 1542 | Result<std::unique_ptr<KernelState>> GroupedDistinctInit(KernelContext* ctx, |
| 1543 | const KernelInitArgs& args) { |
| 1544 | ARROW_ASSIGN_OR_RAISE(auto impl, HashAggregateInit<Impl>(ctx, args)); |
| 1545 | auto instance = static_cast<Impl*>(impl.get()); |
| 1546 | instance->out_type_ = args.inputs[0].GetSharedPtr(); |
| 1547 | ARROW_ASSIGN_OR_RAISE(instance->grouper_, |
| 1548 | Grouper::Make(args.inputs, ctx->exec_context())); |
| 1549 | return impl; |
| 1550 | } |
| 1551 | |
| 1552 | // ---------------------------------------------------------------------- |
| 1553 | // One implementation |
nothing calls this directly
no test coverage detected