From 7d1844d3808dbfd00c2da5ce087b9acaa432b4e0 Mon Sep 17 00:00:00 2001 From: amory Date: Fri, 19 May 2023 14:10:29 +0800 Subject: [PATCH] [FIX](Array)fix be master comapitible with fe1.2 #19850 when upgrade be first , fe is 1.2 , array contains_nulls is set not in thrift ,so would has core in be Issue Number: close #xxx --- be/src/runtime/types.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/be/src/runtime/types.cpp b/be/src/runtime/types.cpp index e0cf887b04..ebcb6eb378 100644 --- a/be/src/runtime/types.cpp +++ b/be/src/runtime/types.cpp @@ -66,7 +66,12 @@ TypeDescriptor::TypeDescriptor(const std::vector& types, int* idx) DCHECK_EQ(node.contains_nulls.size(), 1); type = TYPE_ARRAY; contains_nulls.reserve(1); - contains_nulls.push_back(node.contains_nulls[0]); + // here should compatible with fe 1.2, because use contains_null in contains_nulls + if (node.__isset.contains_nulls) { + contains_nulls.push_back(node.contains_nulls[0]); + } else { + contains_nulls.push_back(node.contains_null); + } ++(*idx); children.push_back(TypeDescriptor(types, idx)); break;