summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/select_yql_aggregation.h
blob: b92e39903a251d4280bee8f06246d28196f84d4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "aggregation.h"
#include "node.h"

namespace NSQLTranslationV1 {

struct TYqlAggregationArgs {
    TString FunctionName;
    TString FactoryName;
    EAggregationType Type;
    EAggregateMode Mode;
    TVector<TNodePtr> Args;
};

TNodeResult BuildYqlAggregation(TPosition position, TYqlAggregationArgs&& args);

TNodePtr BuildYqlGrouping(TPosition position, TVector<TNodePtr> args);

} // namespace NSQLTranslationV1