| 1 | //===----------------------------------------------------------------------===// |
| 2 | // DuckDB |
| 3 | // |
| 4 | // duckdb/common/enums/aggregate_handling.hpp |
| 5 | // |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "duckdb/common/constants.hpp" |
| 12 | |
| 13 | namespace duckdb { |
| 14 | |
| 15 | //===---- |
| 16 | enum class AggregateHandling : uint8_t { |
| 17 | STANDARD_HANDLING, // standard handling as in the SELECT clause |
| 18 | NO_AGGREGATES_ALLOWED, // no aggregates allowed: any aggregates in this node will result in an error |
| 19 | FORCE_AGGREGATES // force aggregates: any non-aggregate select list entry will become a GROUP |
| 20 | }; |
| 21 | |
| 22 | const char *ToString(AggregateHandling value); |
| 23 | |
| 24 | } // namespace duckdb |
| 25 | |