You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2022/06/29 07:08:28 UTC

[doris] branch master updated: [Build] fix build fail on clang (#10445)

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

lihaopeng 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 b9223d1657 [Build] fix build fail on clang (#10445)
b9223d1657 is described below

commit b9223d1657c510e8c335898b5078427e9d699807
Author: Pxl <95...@qq.com>
AuthorDate: Wed Jun 29 15:08:24 2022 +0800

    [Build] fix build fail on clang (#10445)
---
 be/src/vec/functions/date_time_transforms.h | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/be/src/vec/functions/date_time_transforms.h b/be/src/vec/functions/date_time_transforms.h
index d42cd2d336..93a0876aeb 100644
--- a/be/src/vec/functions/date_time_transforms.h
+++ b/be/src/vec/functions/date_time_transforms.h
@@ -227,11 +227,17 @@ struct DateFormatImpl {
 
     static DataTypes get_variadic_argument_types() {
         if constexpr (std::is_same_v<DateType, VecDateTimeValue>) {
-            return std::vector<DataTypePtr> {std::make_shared<vectorized::DataTypeDateTime>(),
-                                             std::make_shared<vectorized::DataTypeString>()};
+            return std::vector<DataTypePtr> {
+                    std::dynamic_pointer_cast<const IDataType>(
+                            std::make_shared<vectorized::DataTypeDateTime>()),
+                    std::dynamic_pointer_cast<const IDataType>(
+                            std::make_shared<vectorized::DataTypeString>())};
         } else {
-            return std::vector<DataTypePtr> {std::make_shared<vectorized::DataTypeDateV2>(),
-                                             std::make_shared<vectorized::DataTypeString>()};
+            return std::vector<DataTypePtr> {
+                    std::dynamic_pointer_cast<const IDataType>(
+                            std::make_shared<vectorized::DataTypeDateV2>()),
+                    std::dynamic_pointer_cast<const IDataType>(
+                            std::make_shared<vectorized::DataTypeString>())};
         }
     }
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org