Skip to content

Commit

Permalink
[feature](functions) support add_months on vectorized engine (#11518)…
Browse files Browse the repository at this point in the history
… (#11534)

Co-authored-by: Gabriel <gabrielleebuaa@gmail.com>
  • Loading branch information
yiguolei and Gabriel39 authored Aug 5, 2022
1 parent 37e5ee6 commit de13e2c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ void register_function_date_time_computation(SimpleFunctionFactory& factory) {
factory.register_function<FunctionAddMinutes>();
factory.register_function<FunctionAddHours>();
factory.register_function<FunctionAddDays>();
factory.register_alias("days_add", "date_add");
factory.register_alias("days_add", "adddate");
factory.register_function<FunctionAddWeeks>();
factory.register_function<FunctionAddMonths>();
factory.register_function<FunctionAddYears>();
Expand Down Expand Up @@ -142,6 +140,11 @@ void register_function_date_time_computation(SimpleFunctionFactory& factory) {
factory.register_function<FunctionCurTime>();
factory.register_function<FunctionCurrentTime>();
factory.register_function<FunctionUtcTimeStamp>();

// alias
factory.register_alias("days_add", "date_add");
factory.register_alias("days_add", "adddate");
factory.register_alias("months_add", "add_months");
}

} // namespace doris::vectorized

0 comments on commit de13e2c

Please sign in to comment.