1#include "duckdb/parser/parsed_expression.hpp"
2#include "duckdb/parser/transformer.hpp"
3
4using namespace duckdb;
5using namespace std;
6
7// FIXME: what is the difference between GroupBy and expression list?
8bool Transformer::TransformGroupBy(PGList *group, vector<unique_ptr<ParsedExpression>> &result) {
9 if (!group) {
10 return false;
11 }
12
13 for (auto node = group->head; node != nullptr; node = node->next) {
14 auto n = reinterpret_cast<PGNode *>(node->data.ptr_value);
15 result.push_back(TransformExpression(n));
16 }
17 return true;
18}
19