feat: add new json format (#281)
* feat: add new json format
* refactor: rename native format
* chore: store nested data type in json_native_extension
* feat: use json as a concrete type in proto
* Revert "feat: add `BuildIndexRequest` to `RegionRequestHeader` (#276)"
This reverts commit ee46a0eeaa.
This commit is contained in:
@@ -198,10 +198,13 @@ message ColumnDataTypeExtension {
|
||||
oneof type_ext {
|
||||
DecimalTypeExtension decimal_type = 1;
|
||||
// Marks the binary column in proto is actually a JSON column.
|
||||
// Deprecated
|
||||
JsonTypeExtension json_type = 2;
|
||||
VectorTypeExtension vector_type = 3;
|
||||
ListTypeExtension list_type = 4;
|
||||
StructTypeExtension struct_type = 5;
|
||||
// Marks the data type is a logical json data
|
||||
JsonNativeTypeExtension json_native_type = 6;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,6 +213,7 @@ message DecimalTypeExtension {
|
||||
int32 scale = 2;
|
||||
}
|
||||
|
||||
// Deprecated
|
||||
enum JsonTypeExtension {
|
||||
JSON_BINARY = 0;
|
||||
}
|
||||
@@ -227,6 +231,11 @@ message StructTypeExtension {
|
||||
repeated StructField fields = 1;
|
||||
}
|
||||
|
||||
message JsonNativeTypeExtension {
|
||||
ColumnDataType datatype = 1;
|
||||
ColumnDataTypeExtension datatype_extension = 2;
|
||||
}
|
||||
|
||||
// Additional options for the column.
|
||||
message ColumnOptions {
|
||||
// Supported keys:
|
||||
|
||||
Reference in New Issue
Block a user