ClickHouse/src/Functions/toQuarter.cpp
Robert Schulze 0a05831839
Cosmetics
2023-09-09 16:52:42 +00:00

20 lines
494 B
C++

#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToSomething.h>
#include <DataTypes/DataTypesNumber.h>
namespace DB
{
using FunctionToQuarter = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToQuarterImpl>;
REGISTER_FUNCTION(ToQuarter)
{
factory.registerFunction<FunctionToQuarter>();
/// MySQL compatibility alias.
factory.registerAlias("QUARTER", "toQuarter", FunctionFactory::CaseInsensitive);
}
}