This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ae3c513d74 use extern template to date_time_add (#13970)
ae3c513d74 is described below
commit ae3c513d7474e9b2c81b73413bf86792dfda2160
Author: Pxl <[email protected]>
AuthorDate: Tue Nov 8 22:11:41 2022 +0800
use extern template to date_time_add (#13970)
---
be/src/vec/functions/function_date_or_datetime_computation.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/functions/function_date_or_datetime_computation.h
b/be/src/vec/functions/function_date_or_datetime_computation.h
index 4d1002ed0e..a22bc1a357 100644
--- a/be/src/vec/functions/function_date_or_datetime_computation.h
+++ b/be/src/vec/functions/function_date_or_datetime_computation.h
@@ -34,7 +34,7 @@ namespace doris::vectorized {
template <TimeUnit unit, typename Arg, typename DateValueType, typename
ResultDateValueType,
typename ResultType>
-inline ResultType date_time_add(const Arg& t, Int64 delta, bool& is_null) {
+extern ResultType date_time_add(const Arg& t, Int64 delta, bool& is_null) {
auto ts_value = binary_cast<Arg, DateValueType>(t);
TimeInterval interval(unit, delta, false);
if constexpr (std::is_same_v<VecDateTimeValue, DateValueType> ||
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]