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

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

commit 3b2f80a9a08faa7d27568f206762276b87e2acb9
Author: amory <[email protected]>
AuthorDate: Wed Aug 2 14:22:16 2023 +0800

    fixed (#22481)
    
    [FIX](array) fix array-dcheck-contains_null
---
 be/src/runtime/types.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/runtime/types.cpp b/be/src/runtime/types.cpp
index 6208ea6ac7..42b5d94b63 100644
--- a/be/src/runtime/types.cpp
+++ b/be/src/runtime/types.cpp
@@ -63,11 +63,11 @@ TypeDescriptor::TypeDescriptor(const 
std::vector<TTypeNode>& types, int* idx)
     case TTypeNodeType::ARRAY: {
         DCHECK(!node.__isset.scalar_type);
         DCHECK_LT(*idx, types.size() - 1);
-        DCHECK_EQ(node.contains_nulls.size(), 1);
         type = TYPE_ARRAY;
         contains_nulls.reserve(1);
         // here should compatible with fe 1.2, because use contains_null in 
contains_nulls
         if (node.__isset.contains_nulls) {
+            DCHECK_EQ(node.contains_nulls.size(), 1);
             contains_nulls.push_back(node.contains_nulls[0]);
         } else {
             contains_nulls.push_back(node.contains_null);


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

Reply via email to