[feature-wip] Support all date functions for datev2/datetimev2 (#11265)

* [feature-wip] (datetimev2) support convert_tz function

* [feature-wip] Support all date functions for datev2/datetimev2
This commit is contained in:
Gabriel
2022-07-28 08:18:59 +08:00
committed by GitHub
parent 87b1f4c071
commit 72d2feae99
22 changed files with 801 additions and 269 deletions

View File

@ -22,7 +22,15 @@
namespace doris::vectorized {
void register_function_convert_tz(SimpleFunctionFactory& factory) {
factory.register_function<FunctionConvertTZ>();
factory.register_function<
FunctionConvertTZ<ConvertTZImpl<DateV2Value<DateTimeV2ValueType>, DataTypeDateTimeV2>,
DataTypeDateTimeV2>>();
factory.register_function<FunctionConvertTZ<ConvertTZImpl<VecDateTimeValue, DataTypeDateTime>,
DataTypeDateTime>>();
factory.register_function<FunctionConvertTZ<
ConvertTZImpl<DateV2Value<DateV2ValueType>, DataTypeDateV2>, DataTypeDateV2>>();
factory.register_function<
FunctionConvertTZ<ConvertTZImpl<VecDateTimeValue, DataTypeDate>, DataTypeDate>>();
}
} // namespace doris::vectorized