[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
This commit is contained in:
@ -66,7 +66,12 @@ TypeDescriptor::TypeDescriptor(const std::vector<TTypeNode>& 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;
|
||||
|
||||
Reference in New Issue
Block a user