| 224 | |
| 225 | template <typename Type, typename VisitorArgType> |
| 226 | Result<std::unique_ptr<KernelState>> CountDistinctInit(KernelContext* ctx, |
| 227 | const KernelInitArgs& args) { |
| 228 | return std::make_unique<CountDistinctImpl<Type, VisitorArgType>>( |
| 229 | ctx->memory_pool(), static_cast<const CountOptions&>(*args.options)); |
| 230 | } |
| 231 | |
| 232 | template <typename Type, typename VisitorArgType = typename Type::c_type> |
| 233 | void AddCountDistinctKernel(InputType type, ScalarAggregateFunction* func) { |
nothing calls this directly
no test coverage detected