ClickHouse/dbms/src/Functions/toCustomWeek.cpp

20 lines
553 B
C++
Raw Normal View History

2019-05-07 11:27:20 +00:00
#include <DataTypes/DataTypesNumber.h>
2019-06-09 15:19:15 +00:00
#include <Functions/CustomWeekTransforms.h>
#include <Functions/FunctionCustomWeekToSomething.h>
2019-05-07 11:27:20 +00:00
#include <Functions/FunctionFactory.h>
#include <Functions/IFunction.h>
namespace DB
{
2019-06-09 15:19:15 +00:00
using FunctionWeek = FunctionCustomWeekToSomething<DataTypeUInt8, WeekImpl>;
using FunctionYearWeek = FunctionCustomWeekToSomething<DataTypeUInt32, YearWeekImpl>;
void registerFunctionToCustomWeek(FunctionFactory & factory)
{
2019-06-09 15:19:15 +00:00
factory.registerFunction<FunctionWeek>();
factory.registerFunction<FunctionYearWeek>();
}
}