chore: add json type (#194)

This commit is contained in:
Weny Xu
2024-10-30 04:12:24 +08:00
committed by GitHub
parent fc45ac4cce
commit 86ed051dfd
5 changed files with 39 additions and 22 deletions
+15 -5
View File
@@ -244,6 +244,10 @@ public final class Common {
* <code>DECIMAL128 = 30;</code>
*/
DECIMAL128(30),
/**
* <code>JSON = 31;</code>
*/
JSON(31),
UNRECOGNIZED(-1),
;
@@ -355,6 +359,10 @@ public final class Common {
* <code>DECIMAL128 = 30;</code>
*/
public static final int DECIMAL128_VALUE = 30;
/**
* <code>JSON = 31;</code>
*/
public static final int JSON_VALUE = 31;
public final int getNumber() {
@@ -408,6 +416,7 @@ public final class Common {
case 24: return INTERVAL_DAY_TIME;
case 25: return INTERVAL_MONTH_DAY_NANO;
case 30: return DECIMAL128;
case 31: return JSON;
default: return null;
}
}
@@ -14231,7 +14240,7 @@ java.lang.String defaultValue);
"Options.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003" +
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*1\n\014Semantic" +
"Type\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*" +
"\326\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020" +
"\340\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020" +
"\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UI" +
"NT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020" +
"\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022" +
@@ -14242,10 +14251,11 @@ java.lang.String defaultValue);
"ME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023" +
"\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MON" +
"TH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_" +
"MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036*$\n\021Json" +
"TypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.gre" +
"ptime.v1B\006CommonZ5github.com/GreptimeTea" +
"m/greptime-proto/go/greptime/v1b\006proto3"
"MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON" +
"\020\037*$\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000" +
"BO\n\016io.greptime.v1B\006CommonZ5github.com/G" +
"reptimeTeam/greptime-proto/go/greptime/v" +
"1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,