| 1 | //===----------------------------------------------------------------------===// |
|---|---|
| 2 | // DuckDB |
| 3 | // |
| 4 | // duckdb/function/aggregate/distributive_functions.hpp |
| 5 | // |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "duckdb/function/aggregate_function.hpp" |
| 12 | #include "duckdb/function/function_set.hpp" |
| 13 | #include "duckdb/common/types/null_value.hpp" |
| 14 | #include "duckdb/function/built_in_functions.hpp" |
| 15 | |
| 16 | namespace duckdb { |
| 17 | |
| 18 | struct CountStarFun { |
| 19 | static AggregateFunction GetFunction(); |
| 20 | |
| 21 | static void RegisterFunction(BuiltinFunctions &set); |
| 22 | }; |
| 23 | |
| 24 | struct CountFun { |
| 25 | static AggregateFunction GetFunction(); |
| 26 | |
| 27 | static void RegisterFunction(BuiltinFunctions &set); |
| 28 | }; |
| 29 | |
| 30 | struct FirstFun { |
| 31 | static AggregateFunction GetFunction(const LogicalType &type); |
| 32 | |
| 33 | static void RegisterFunction(BuiltinFunctions &set); |
| 34 | }; |
| 35 | |
| 36 | } // namespace duckdb |
| 37 |