2018-09-26 00:31:40 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/DateTimeTransforms.h>
|
2022-09-22 13:30:40 +00:00
|
|
|
#include <Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h>
|
2018-09-26 00:31:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2022-09-22 13:30:40 +00:00
|
|
|
using FunctionToStartOfFiveMinutes = FunctionDateOrDateTimeToDateTimeOrDateTime64<ToStartOfFiveMinutesImpl>;
|
2018-09-26 00:31:40 +00:00
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(ToStartOfFiveMinutes)
|
2018-09-26 00:31:40 +00:00
|
|
|
{
|
2022-04-22 02:49:59 +00:00
|
|
|
factory.registerFunction<FunctionToStartOfFiveMinutes>();
|
2022-04-22 03:27:24 +00:00
|
|
|
factory.registerAlias("toStartOfFiveMinute", FunctionToStartOfFiveMinutes::name);
|
2018-09-26 00:31:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|