Skip to content

Commit

Permalink
[feature](functions) support add_months on vectorized engine (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel39 authored and Doris-Extras committed Aug 5, 2022
1 parent 37e5ee6 commit 7a0fe35
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 7a0fe35

Please sign in to comment.