2022-02-09 07:28:15 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionDateOrDateTimeAddInterval.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
using FunctionSubtractNanoseconds = FunctionDateOrDateTimeAddInterval<SubtractNanosecondsImpl>;
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(SubtractNanoseconds)
|
2022-02-09 07:28:15 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionSubtractNanoseconds>();
|
2022-05-20 08:14:03 +00:00
|
|
|
}
|
2022-02-09 07:28:15 +00:00
|
|
|
|
|
|
|
using FunctionSubtractMicroseconds = FunctionDateOrDateTimeAddInterval<SubtractMicrosecondsImpl>;
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(SubtractMicroseconds)
|
2022-02-09 07:28:15 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionSubtractMicroseconds>();
|
2022-05-20 08:14:03 +00:00
|
|
|
}
|
2022-02-09 07:28:15 +00:00
|
|
|
|
|
|
|
using FunctionSubtractMilliseconds = FunctionDateOrDateTimeAddInterval<SubtractMillisecondsImpl>;
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(SubtractMilliseconds)
|
2022-02-09 07:28:15 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionSubtractMilliseconds>();
|
2022-05-20 08:14:03 +00:00
|
|
|
}
|
2022-02-09 07:28:15 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|