From 078e1bdc1a6b6b04b713cf18b18f08378afec7c2 Mon Sep 17 00:00:00 2001 From: Zhenchi Date: Fri, 8 Nov 2024 10:13:02 +0000 Subject: [PATCH] feat: introduce vector type Signed-off-by: Zhenchi --- proto/greptime/v1/common.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto/greptime/v1/common.proto b/proto/greptime/v1/common.proto index ce068840..897e91f7 100644 --- a/proto/greptime/v1/common.proto +++ b/proto/greptime/v1/common.proto @@ -118,6 +118,7 @@ enum ColumnDataType { INTERVAL_MONTH_DAY_NANO = 25; DECIMAL128 = 30; JSON = 31; + VECTOR = 32; } message IntervalMonthDayNano { @@ -138,6 +139,7 @@ message ColumnDataTypeExtension { DecimalTypeExtension decimal_type = 1; // Marks the binary column in proto is actually a JSON column. JsonTypeExtension json_type = 2; + VectorTypeExtension vector_type = 3; } } @@ -150,6 +152,10 @@ enum JsonTypeExtension { JSON_BINARY = 0; } +message VectorTypeExtension { + uint32 dim = 1; +} + // Additional options for the column. message ColumnOptions { // Supported keys: