1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/parser/group_by_node.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/parser/parsed_expression.hpp" |
12 | #include "duckdb/common/set.hpp" |
13 | #include "duckdb/common/vector.hpp" |
14 | |
15 | namespace duckdb { |
16 | |
17 | using GroupingSet = set<idx_t>; |
18 | |
19 | class GroupByNode { |
20 | public: |
21 | //! The total set of all group expressions |
22 | vector<unique_ptr<ParsedExpression>> group_expressions; |
23 | //! The different grouping sets as they map to the group expressions |
24 | vector<GroupingSet> grouping_sets; |
25 | }; |
26 | |
27 | } // namespace duckdb |
28 |