Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(hive): hive connection (#11097)
Azusain39441e1edcb3
diff --git a/backend/plugin/db/hive/hive.go b/backend/plugin/db/hive/hive.gonew file mode 100644index 0000000000..7d6da22946--- /dev/null+++ b/backend/plugin/db/hive/hive.go@@ -0,0 +1,181 @@+package hive++import (+ "context"+ "database/sql"+ "io"+ "strconv"+ "time"++ "github.com/beltran/gohive"+ "github.com/pkg/errors"++ "github.com/bytebase/bytebase/backend/plugin/db"++ storepb "github.com/bytebase/bytebase/proto/generated-go/store"+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"+)++type Driver struct {+ config db.ConnectionConfig+ ctx db.ConnectionContext+ dbClient *gohive.Connection+}++var (+ _ db.Driver = (*Driver)(nil)+)++func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionConfig) (db.Driver, error) {+ // field legality check.+ if config.Username == "" {+ return nil, errors.Errorf("user not set")+ }+ if config.Host == "" {+ return nil, errors.Errorf("hostname not set")+ }+ d.config = config+ d.ctx = config.ConnectionContext++ // initialize database connection.+ configuration := gohive.NewConnectConfiguration()+ port, err := strconv.Atoi(config.Port)+ if err != nil {+ return nil, errors.Errorf("conversion failure for 'port' [string -> int]")+ }+ // TODO(tommy): actually there are various kinds of authentication to choose among [SASL, KERBEROS, NOSASL, PLAIN SASL]+ // "NONE" refers to PLAIN SASL that doesn't need authentication.+ authMethods := "NONE"+ conn, errConn := gohive.Connect(config.Host, port, authMethods, configuration)+ if errConn != nil {+ return nil, errors.Errorf("failed to establish connection")+ }+ d.dbClient = conn+ return d, nil+}++func (d *Driver) Close(_ context.Context) error {+ err := d.dbClient.Close()+ if err != nil {+ return errors.Errorf("faild to close connection")+ }+ return nil+}++func (d *Driver) Ping(ctx context.Context) error {+ if d.dbClient == nil {+ return errors.Errorf("database not connected")+ }+ if _, err := d.Execute(ctx, "SELECT 1", db.ExecuteOptions{}); err != nil {+ return errors.Errorf("bad connection")+ }+ return nil+}++func (*Driver) GetType() storepb.Engine {+ return storepb.Engine_HIVE+}++func (*Driver) GetDB() *sql.DB {+ return nil+}++func (d *Driver) Execute(ctx context.Context, statement string, _ db.ExecuteOptions) (int64, error) {+ var rowCount int64+ cursor := d.dbClient.Cursor()+ cursor.Execute(ctx, statement, false)+ operationStatus := cursor.Poll(false)++ if cursor.Err != nil {+ return 0, errors.Wrapf(cursor.Err, "failed to execute statement")+ }+ rowCount = operationStatus.GetNumModifiedRows()+ cursor.Close()+ return rowCount, nil+}++// Used for execute readonly SELECT statement.+func (d *Driver) QueryConn(ctx context.Context, _ *sql.Conn, statement string, _ *db.QueryContext) ([]*v1pb.QueryResult, error) {+ cursor := d.dbClient.Cursor()+ cursor.Exec(ctx, statement)+ if cursor.Err != nil {+ return nil, errors.Wrapf(cursor.Err, "failed to execute statement")+ }+ // TODO(tommy): func not implemented+ // var results []*v1pb.QueryResult++ // for cursor.HasMore(ctx) {+ // for columnName, value := range cursor.RowMap(ctx) {+ // }+ // cursor.FetchOne(ctx)+ // }++ return nil, errors.Errorf("Not implemeted")+}++// RunStatement will execute the statement and return the result, for both SELECT and non-SELECT statements.+func (*Driver) RunStatement(_ context.Context, _ *sql.Conn, _ string) ([]*v1pb.QueryResult, error) {+ return nil, errors.Errorf("Not implemeted")+}++// Sync schema+// SyncInstance syncs the instance metadata.+func (*Driver) SyncInstance(_ context.Context) (*db.InstanceMetadata, error) {+ return nil, errors.Errorf("Not implemeted")+}++// SyncDBSchema syncs a single database schema.+func (*Driver) SyncDBSchema(_ context.Context) (*storepb.DatabaseSchemaMetadata, error) {+ return nil, errors.Errorf("Not implemeted")+}++// Sync slow query logs+// SyncSlowQuery syncs the slow query logs.+// The returned map is keyed by database name, and the value is list of slow query statistics grouped by query fingerprint.+func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {+ return nil, errors.Errorf("Not implemeted")+}++// CheckSlowQueryLogEnabled checks if the slow query log is enabled.+func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {+ return errors.Errorf("Not implemeted")+}++// Role+// CreateRole creates the role.+func (*Driver) CreateRole(_ context.Context, _ *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {+ return nil, errors.Errorf("Not implemeted")+}++// UpdateRole updates the role.+func (*Driver) UpdateRole(_ context.Context, _ string, _ *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {+ return nil, errors.Errorf("Not implemeted")+}++// FindRole finds the role by name.+func (*Driver) FindRole(_ context.Context, _ string) (*db.DatabaseRoleMessage, error) {+ return nil, errors.Errorf("Not implemeted")+}++// ListRole lists the role.+func (*Driver) ListRole(_ context.Context) ([]*db.DatabaseRoleMessage, error) {+ return nil, errors.Errorf("Not implemeted")+}++// DeleteRole deletes the role by name.+func (*Driver) DeleteRole(_ context.Context, _ string) error {+ return errors.Errorf("Not implemeted")+}++// Dump and restore+// Dump the database.+// The returned string is the JSON encoded metadata for the logical dump.+// For MySQL, the payload contains the binlog filename and position when the dump is generated.+func (*Driver) Dump(_ context.Context, _ io.Writer, _ bool) (string, error) {+ return "", errors.Errorf("Not implemeted")+}++// Restore the database from src, which is a full backup.+func (*Driver) Restore(_ context.Context, _ io.Reader) error {+ return errors.Errorf("Not implemeted")+}diff --git a/frontend/src/types/proto/store/common.ts b/frontend/src/types/proto/store/common.tsindex c27cbbadd5..ba5d3ccada 100644--- a/frontend/src/types/proto/store/common.ts+++ b/frontend/src/types/proto/store/common.ts@@ -25,6 +25,7 @@ export enum Engine {OCEANBASE_ORACLE = 17,STARROCKS = 18,DORIS = 19,+ HIVE = 20,UNRECOGNIZED = -1,}@@ -90,6 +91,9 @@ export function engineFromJSON(object: any): Engine {case 19:case "DORIS":return Engine.DORIS;+ case 20:+ case "HIVE":+ return Engine.HIVE;case -1:case "UNRECOGNIZED":default:@@ -139,6 +143,8 @@ export function engineToJSON(object: Engine): string {return "STARROCKS";case Engine.DORIS:return "DORIS";+ case Engine.HIVE:+ return "HIVE";case Engine.UNRECOGNIZED:default:return "UNRECOGNIZED";diff --git a/go.mod b/go.modindex 463ad50cc1..cc53252787 100644--- a/go.mod+++ b/go.mod@@ -14,6 +14,7 @@ require (github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.1github.com/aws/aws-sdk-go-v2/service/licensemanager v1.23.6github.com/aws/aws-sdk-go-v2/service/s3 v1.50.0+ github.com/beltran/gohive v1.7.0github.com/blang/semver/v4 v4.0.0github.com/bytebase/mysql-parser v0.0.0-20240220070334-5b2c6e79084dgithub.com/bytebase/plsql-parser v0.0.0-20240312070534-3df16db96661@@ -96,6 +97,9 @@ require (github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirectgithub.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c // indirectgithub.com/apache/arrow/go/v14 v14.0.2 // indirect+ github.com/apache/thrift v0.18.1 // indirect+ github.com/beltran/gosasl v0.0.0-20200715011608-d5475aebb293 // indirect+ github.com/beltran/gssapi v0.0.0-20200324152954-d86554db4bab // indirectgithub.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirectgithub.com/cloudfoundry/gosigar v1.3.6 // indirectgithub.com/cockroachdb/errors v1.8.1 // indirect@@ -112,6 +116,7 @@ require (github.com/go-asn1-ber/asn1-ber v1.5.5 // indirectgithub.com/go-logr/logr v1.4.1 // indirectgithub.com/go-logr/stdr v1.2.2 // indirect+ github.com/go-zookeeper/zk v1.0.1 // indirectgithub.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirectgithub.com/golang-jwt/jwt v3.2.2+incompatible // indirectgithub.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirectdiff --git a/go.sum b/go.sumindex 72195fdbb8..fe18246853 100644--- a/go.sum+++ b/go.sum@@ -77,6 +77,8 @@ github.com/apache/arrow/go/v14 v14.0.2 h1:N8OkaJEOfI3mEZt07BIkvo4sC6XDbL+48MBPWOgithub.com/apache/arrow/go/v14 v14.0.2/go.mod h1:u3fgh3EdgN/YQ8cVQRguVW3R+seMybFg8QBQ5LU+eBY=github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=+github.com/apache/thrift v0.18.1 h1:lNhK/1nqjbwbiOPDBPFJVKxgDEGSepKuTh6OLiXW8kg=+github.com/apache/thrift v0.18.1/go.mod h1:rdQn/dCcDKEWjjylUeueum4vQEjG2v8v2PqriUnbr+I=github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=@@ -126,6 +128,12 @@ github.com/aws/aws-sdk-go-v2/service/sts v1.27.0/go.mod h1:nXfOBMWPokIbOY+Gi7a1pgithub.com/aws/smithy-go v1.20.0 h1:6+kZsCXZwKxZS9RfISnPc4EXlHoyAkm2hPuM8X2BrrQ=github.com/aws/smithy-go v1.20.0/go.mod h1:uo5RKksAl4PzhqaAbjd4rLgFoq5koTsQKYuGe7dklGc=github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=+github.com/beltran/gohive v1.7.0 h1:Jvz6yrWuAAUWZ1Y84+24NjMcWYkUZZBUE7/sTWtLKY0=+github.com/beltran/gohive v1.7.0/go.mod h1:IgDi0gD1c73aKKQyS+3j1+NWSNn5NUK7rDcg/Rr6mTs=+github.com/beltran/gosasl v0.0.0-20200715011608-d5475aebb293 h1:1wRvU44e78w7zJoynLqrXLKSI+VEFEaWmzyq5JdUx7I=+github.com/beltran/gosasl v0.0.0-20200715011608-d5475aebb293/go.mod h1:Qx8cW6jkI8riyzmklj80kAIkv+iezFUTBiGU0qHhHes=+github.com/beltran/gssapi v0.0.0-20200324152954-d86554db4bab h1:ayfcn60tXOSYy5zUN1AMSTQo4nJCf7hrdzAVchpPst4=+github.com/beltran/gssapi v0.0.0-20200324152954-d86554db4bab/go.mod h1:GLe4UoSyvJ3cVG+DVtKen5eAiaD8mAJFuV5PT3Eeg9Q=github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=@@ -361,6 +369,8 @@ github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBgithub.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI=github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=+github.com/go-zookeeper/zk v1.0.1 h1:LmXNmSnkNsNKai+aDu6sHRr8ZJzIrHJo8z8Z4sm8cT8=+github.com/go-zookeeper/zk v1.0.1/go.mod h1:gpJdHazfkmlg4V0rt0vYeHYJHSL8hHFwV0qOd+HRTJE=github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 3105da73ab..cb7ca06f7f 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -1269,6 +1269,7 @@ Used internally for obfuscating the page token.| OCEANBASE_ORACLE | 17 | || STARROCKS | 18 | || DORIS | 19 | |+| HIVE | 20 | |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 7e494dcebb..ccd8ad4c9e 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -3553,6 +3553,12 @@ Example: projects/project-id/branches/branch-id. </p></td><td><p></p></td></tr>+ <tr>+ <td>HIVE</td>+ <td>20</td>+ <td><p></p></td>+ </tr>+</tbody></table>diff --git a/proto/generated-go/store/common.pb.go b/proto/generated-go/store/common.pb.goindex b26878970d..7c7db5c68e 100644--- a/proto/generated-go/store/common.pb.go+++ b/proto/generated-go/store/common.pb.go@@ -43,6 +43,7 @@ const (Engine_OCEANBASE_ORACLE Engine = 17Engine_STARROCKS Engine = 18Engine_DORIS Engine = 19+ Engine_HIVE Engine = 20)// Enum value maps for Engine.@@ -68,6 +69,7 @@ var (17: "OCEANBASE_ORACLE",18: "STARROCKS",19: "DORIS",+ 20: "HIVE",}Engine_value = map[string]int32{"ENGINE_UNSPECIFIED": 0,@@ -90,6 +92,7 @@ var ("OCEANBASE_ORACLE": 17,"STARROCKS": 18,"DORIS": 19,+ "HIVE": 20,})@@ -289,7 +292,7 @@ var file_store_common_proto_rawDesc = []byte{0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x2a,- 0x9c, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e,+ 0xa6, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e,0x47, 0x49, 0x4e, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4c, 0x49, 0x43, 0x4b, 0x48, 0x4f, 0x55, 0x53, 0x45,0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x10, 0x02, 0x12, 0x0c, 0x0a,@@ -306,19 +309,20 @@ var file_store_common_proto_rawDesc = []byte{0x0a, 0x0a, 0x52, 0x49, 0x53, 0x49, 0x4e, 0x47, 0x57, 0x41, 0x56, 0x45, 0x10, 0x10, 0x12, 0x14,0x0a, 0x10, 0x4f, 0x43, 0x45, 0x41, 0x4e, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43,0x4c, 0x45, 0x10, 0x11, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x54, 0x41, 0x52, 0x52, 0x4f, 0x43, 0x4b,- 0x53, 0x10, 0x12, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x4f, 0x52, 0x49, 0x53, 0x10, 0x13, 0x2a, 0x4a,- 0x0a, 0x07, 0x56, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x43, 0x53,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12,- 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42,- 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03, 0x2a, 0x4e, 0x0a, 0x0c, 0x4d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41,- 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e,- 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x02,- 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65,- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x53, 0x10, 0x12, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x4f, 0x52, 0x49, 0x53, 0x10, 0x13, 0x12, 0x08,+ 0x0a, 0x04, 0x48, 0x49, 0x56, 0x45, 0x10, 0x14, 0x2a, 0x4a, 0x0a, 0x07, 0x56, 0x63, 0x73, 0x54,+ 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x43, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a,+ 0x06, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54,+ 0x48, 0x55, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b,+ 0x45, 0x54, 0x10, 0x03, 0x2a, 0x4e, 0x0a, 0x0c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c,+ 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f,+ 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a,+ 0x07, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55,+ 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,+ 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x33,}var (diff --git a/proto/store/common.proto b/proto/store/common.protoindex 519958c8d6..2c9574cd4f 100644--- a/proto/store/common.proto+++ b/proto/store/common.proto@@ -31,6 +31,7 @@ enum Engine {OCEANBASE_ORACLE = 17;STARROCKS = 18;DORIS = 19;+ HIVE = 20;}enum VcsType {