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:
Yohan Wal
2024-09-09 16:14:58 +08:00
committed by GitHub
parent 157cfdb527
commit 973f49cde8
5 changed files with 611 additions and 103 deletions
+9 -1
View File
@@ -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: