This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new 56ce02d056 [fix](FoldConstant) with FoldConstant in be without 
DATETIMEV2 #23866
56ce02d056 is described below

commit 56ce02d0568b563df4356debc46146028b8fb0ed
Author: Mryange <[email protected]>
AuthorDate: Tue Sep 5 11:13:37 2023 +0800

    [fix](FoldConstant) with FoldConstant in be without DATETIMEV2 #23866
---
 be/src/runtime/fold_constant_executor.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/be/src/runtime/fold_constant_executor.cpp 
b/be/src/runtime/fold_constant_executor.cpp
index a782024eb1..12945235dc 100644
--- a/be/src/runtime/fold_constant_executor.cpp
+++ b/be/src/runtime/fold_constant_executor.cpp
@@ -250,6 +250,13 @@ string FoldConstantExecutor::_get_result(void* src, size_t 
size, PrimitiveType s
             return str;
         }
     }
+    case TYPE_DATETIMEV2: {
+        auto date_value = reinterpret_cast<
+                
doris::vectorized::DateV2Value<doris::vectorized::DateTimeV2ValueType>*>(src);
+        char str[MAX_DTVALUE_STR_LEN];
+        date_value->to_string(str);
+        return str;
+    }
     case TYPE_DECIMALV2: {
         return reinterpret_cast<DecimalV2Value*>(src)->to_string();
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to