You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/04/27 07:42:59 UTC

[doris] 08/10: [FIX](map-type)fix map regress test & create mapTypeInfo without delete #19033

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

morningman pushed a commit to branch branch-2.0-alpha
in repository https://gitbox.apache.org/repos/asf/doris.git

commit a427f7a9e5cd54e8c75b586cc7f10618b7d172df
Author: amory <wa...@selectdb.com>
AuthorDate: Wed Apr 26 19:03:55 2023 +0800

     [FIX](map-type)fix map regress test & create mapTypeInfo without delete #19033
---
 be/src/olap/types.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/types.cpp b/be/src/olap/types.cpp
index da3fd4a255..00f737364f 100644
--- a/be/src/olap/types.cpp
+++ b/be/src/olap/types.cpp
@@ -256,7 +256,7 @@ TypeInfoPtr get_type_info(const TabletColumn* col) {
         const auto* val_column = &col->get_sub_column(1);
         TypeInfoPtr value_type = get_type_info(val_column);
         MapTypeInfo* map_type_info = new MapTypeInfo(std::move(key_type), std::move(value_type));
-        return create_static_type_info_ptr(map_type_info);
+        return create_dynamic_type_info_ptr(map_type_info);
     } else {
         return create_static_type_info_ptr(get_scalar_type_info(type));
     }


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