feat: add Dictionary to ColumnDataType (#290)

This commit is contained in:
Ruihang Xia
2025-11-21 18:45:21 +08:00
committed by GitHub
parent fd699b2199
commit 437e6a1ef8
5 changed files with 2592 additions and 223 deletions
+9
View File
@@ -153,6 +153,7 @@ enum ColumnDataType {
VECTOR = 32;
LIST = 40;
STRUCT = 41;
DICTIONARY = 42;
}
message IntervalMonthDayNano {
@@ -205,6 +206,7 @@ message ColumnDataTypeExtension {
StructTypeExtension struct_type = 5;
// Marks the data type is a logical json data
JsonNativeTypeExtension json_native_type = 6;
DictionaryTypeExtension dictionary_type = 7;
}
}
@@ -236,6 +238,13 @@ message JsonNativeTypeExtension {
ColumnDataTypeExtension datatype_extension = 2;
}
message DictionaryTypeExtension {
ColumnDataType key_datatype = 1;
ColumnDataTypeExtension key_datatype_extension = 2;
ColumnDataType value_datatype = 3;
ColumnDataTypeExtension value_datatype_extension = 4;
}
// Additional options for the column.
message ColumnOptions {
// Supported keys: