aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/extractAllGroupsVertical.cpp
blob: 87a0b4cf7bcb75c20bd4b478752c831e80698168 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <Functions/FunctionFactory.h>
#include <Functions/extractAllGroups.h>

namespace
{

struct VerticalImpl
{
    static constexpr auto Kind = DB::ExtractAllGroupsResultKind::VERTICAL;
    static constexpr auto Name = "extractAllGroupsVertical";
};

}

namespace DB
{

REGISTER_FUNCTION(ExtractAllGroupsVertical)
{
    factory.registerFunction<FunctionExtractAllGroups<VerticalImpl>>();
    factory.registerAlias("extractAllGroups", VerticalImpl::Name, FunctionFactory::CaseSensitive);
}

}