2022-02-09 07:28:15 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionDateOrDateTimeAddInterval.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
using FunctionSubtractNanoseconds = FunctionDateOrDateTimeAddInterval<SubtractNanosecondsImpl>;
|
|
|
|
void registerFunctionSubtractNanoseconds(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionSubtractNanoseconds>();
|
2022-05-20 08:14:03 +00:00
|
|
|
}
|
2022-02-09 07:28:15 +00:00
|
|
|
|
|
|
|
using FunctionSubtractMicroseconds = FunctionDateOrDateTimeAddInterval<SubtractMicrosecondsImpl>;
|
|
|
|
void registerFunctionSubtractMicroseconds(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionSubtractMicroseconds>();
|
2022-05-20 08:14:03 +00:00
|
|
|
}
|
2022-02-09 07:28:15 +00:00
|
|
|
|
|
|
|
using FunctionSubtractMilliseconds = FunctionDateOrDateTimeAddInterval<SubtractMillisecondsImpl>;
|
|
|
|
void registerFunctionSubtractMilliseconds(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionSubtractMilliseconds>();
|
2022-05-20 08:14:03 +00:00
|
|
|
}
|
2022-02-09 07:28:15 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|