[FIX](thrift)Fix with 1.2 version for thrift #18658

This commit is contained in:
amory
2023-04-14 14:07:42 +08:00
committed by GitHub
parent 4d18ea30f4
commit db5ec6f6b0
3 changed files with 9 additions and 5 deletions

View File

@ -165,6 +165,7 @@ public class ArrayType extends Type {
container.types.add(node);
Preconditions.checkNotNull(itemType);
node.setType(TTypeNodeType.ARRAY);
node.setContainsNull(containsNull);
node.setContainsNulls(Lists.newArrayList(containsNull));
itemType.toThrift(container);
}

View File

@ -39,9 +39,9 @@ struct TTabletSchema {
11: optional Types.TSortType sort_type
12: optional i32 sort_col_num
13: optional bool disable_auto_compaction
14: optional bool store_row_column = false
14: optional i32 version_col_idx = -1
15: optional bool is_dynamic_schema = false
16: optional i32 version_col_idx = -1
16: optional bool store_row_column = false
}
// this enum stands for different storage format in src_backends

View File

@ -91,8 +91,8 @@ enum TPrimitiveType {
DECIMAL64,
DECIMAL128I,
JSONB,
VARIANT,
UNSUPPORTED,
VARIANT,
LAMBDA_FUNCTION
}
@ -141,8 +141,11 @@ struct TTypeNode {
// only used for structs; has struct_fields.size() corresponding child types
3: optional list<TStructField> struct_fields
// only used for complex types, such as array, map and etc.
4: optional list<bool> contains_nulls
// old version used for array
4: optional bool contains_null
// update for map/struct type
5: optional list<bool> contains_nulls
}
// A flattened representation of a tree of column types obtained by depth-first