feat: add json type proto (#188)
* feat: add type extension for json type * refactor: use a extension type * refactor: as enum
This commit is contained in:
@@ -133,7 +133,11 @@ message Decimal128 {
|
||||
|
||||
// Type extension for some complex types
|
||||
message ColumnDataTypeExtension {
|
||||
oneof type_ext { DecimalTypeExtension decimal_type = 1; }
|
||||
oneof type_ext {
|
||||
DecimalTypeExtension decimal_type = 1;
|
||||
// Marks the binary column in proto is actually a JSON column.
|
||||
JsonTypeExtension json_type = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message DecimalTypeExtension {
|
||||
@@ -141,6 +145,10 @@ message DecimalTypeExtension {
|
||||
int32 scale = 2;
|
||||
}
|
||||
|
||||
enum JsonTypeExtension {
|
||||
JSON_BINARY = 0;
|
||||
}
|
||||
|
||||
// Additional options for the column.
|
||||
message ColumnOptions {
|
||||
// Supported keys:
|
||||
|
||||
Reference in New Issue
Block a user