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(databricks): init and sync (#12266)
Azusainc216871a9beb
diff --git a/backend/plugin/db/databricks/databricks.go b/backend/plugin/db/databricks/databricks.gonew file mode 100644index 0000000000..e8a2d984b3--- /dev/null+++ b/backend/plugin/db/databricks/databricks.go@@ -0,0 +1,91 @@+package databricks++import (+ "context"+ "database/sql"++ "github.com/databricks/databricks-sdk-go"+ "github.com/databricks/databricks-sdk-go/service/workspace"+ "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"+)++func init() {+ db.Register(storepb.Engine_DATABRICKS, NewDatabricksDriver)+}++var _ db.Driver = (*Driver)(nil)++type Driver struct {+ curCatalog string+ client *databricks.WorkspaceClient+}++func NewDatabricksDriver(db.DriverConfig) db.Driver {+ return &Driver{}+}++// Each Databricks driver is associated with a single Databricks Workspace (Workspace -> catalog -> schema -> table).+func (d *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionConfig) (db.Driver, error) {+ databricksConfig := &databricks.Config{+ Host: config.Host,+ }+ // Support Databricks native authentication.+ // ref: https://github.com/databricks/databricks-sdk-go?tab=readme-ov-file#databricks-native-authentication+ if config.AuthenticationPrivateKey != "" {+ // Token.+ databricksConfig.Token = config.AuthenticationPrivateKey+ } else {+ // Basic username and password.+ databricksConfig.Username = config.Username+ databricksConfig.Password = config.Password+ databricksConfig.AccountID = config.AccountID+ }+ client, err := databricks.NewWorkspaceClient(databricksConfig)+ if err != nil {+ return nil, err+ }+ d.client = client+ d.curCatalog = config.Database+ return d, nil+}++func (*Driver) Close(_ context.Context) error {+ return nil+}++func (d *Driver) Ping(ctx context.Context) error {+ _, err := d.client.Workspace.ListAll(ctx, workspace.ListWorkspaceRequest{})+ if err != nil {+ return errors.Wrapf(err, "failed to ping instance")+ }+ return nil+}++func (*Driver) GetDB() *sql.DB {+ return nil+}++func (*Driver) GetType() storepb.Engine {+ return storepb.Engine_DATABRICKS+}++func (*Driver) QueryConn(_ context.Context, _ *sql.Conn, _ string, _ *db.QueryContext) ([]*v1pb.QueryResult, error) {+ return nil, nil+}++func (*Driver) RunStatement(_ context.Context, _ *sql.Conn, _ string) ([]*v1pb.QueryResult, error) {+ return nil, nil+}++func (*Driver) Execute(_ context.Context, _ string, _ db.ExecuteOptions) (int64, error) {+ return 0, nil+}++func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {+ return nil+}diff --git a/backend/plugin/db/databricks/dump.go b/backend/plugin/db/databricks/dump.gonew file mode 100644index 0000000000..728448845e--- /dev/null+++ b/backend/plugin/db/databricks/dump.go@@ -0,0 +1,10 @@+package databricks++import (+ "context"+ "io"+)++func (*Driver) Dump(_ context.Context, _ io.Writer, _ bool) (string, error) {+ return "", nil+}diff --git a/backend/plugin/db/databricks/role.go b/backend/plugin/db/databricks/role.gonew file mode 100644index 0000000000..94e59a9c42--- /dev/null+++ b/backend/plugin/db/databricks/role.go@@ -0,0 +1,27 @@+package databricks++import (+ "context"++ "github.com/bytebase/bytebase/backend/plugin/db"+)++func (*Driver) CreateRole(_ context.Context, _ *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {+ panic("unimplemented")+}++func (*Driver) DeleteRole(_ context.Context, _ string) error {+ panic("unimplemented")+}++func (*Driver) FindRole(_ context.Context, _ string) (*db.DatabaseRoleMessage, error) {+ panic("unimplemented")+}++func (*Driver) UpdateRole(_ context.Context, _ string, _ *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {+ panic("unimplemented")+}++func (*Driver) ListRole(_ context.Context) ([]*db.DatabaseRoleMessage, error) {+ panic("unimplemented")+}diff --git a/backend/plugin/db/databricks/sync.go b/backend/plugin/db/databricks/sync.gonew file mode 100644index 0000000000..19bc5a405a--- /dev/null+++ b/backend/plugin/db/databricks/sync.go@@ -0,0 +1,181 @@+package databricks++import (+ "context"+ "time"++ "github.com/databricks/databricks-sdk-go/service/catalog"+ "github.com/pkg/errors"++ "github.com/bytebase/bytebase/backend/plugin/db"+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"+)++type tableUnion struct {+ externalTable *storepb.ExternalTableMetadata+ table *storepb.TableMetadata+ view *storepb.ViewMetadata+ materialView *storepb.MaterializedViewMetadata+ typeName catalog.TableType+}++type databricksSchemaMap = map[string][]*tableUnion+type databricksCatalogMap = map[string]databricksSchemaMap++// sync catalog.+func (d *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchemaMetadata, error) {+ // return nothing if no catalogs are specified.+ if d.curCatalog == "" {+ return nil, nil+ }++ // fetch table data from databricks.+ catalogMap, err := d.listTables(ctx)+ if err != nil {+ return nil, err+ }++ dbSchemaMeta := storepb.DatabaseSchemaMetadata{}+ schemaMap, ok := (catalogMap)[d.curCatalog]+ if !ok {+ return nil, errors.Errorf("cannot find metadata for catalog '%s'", d.curCatalog)+ }++ dbSchemaMeta.Name = d.curCatalog+ schemas := convertToStorepbSchemas(schemaMap)+ dbSchemaMeta.Schemas = schemas++ return &dbSchemaMeta, nil+}++func (d *Driver) SyncInstance(ctx context.Context) (*db.InstanceMetadata, error) {+ instanceMetadata := &db.InstanceMetadata{}++ // fetch table data from databricks.+ catalogMap, err := d.listTables(ctx)+ if err != nil {+ return nil, err+ }++ for catalogName, schemaMap := range catalogMap {+ dbSchemaMeta := storepb.DatabaseSchemaMetadata{}+ schemas := convertToStorepbSchemas(schemaMap)+ dbSchemaMeta.Name = catalogName+ dbSchemaMeta.Schemas = schemas+ instanceMetadata.Databases = append(instanceMetadata.Databases, &dbSchemaMeta)+ }++ return instanceMetadata, nil+}++func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {+ return nil, nil+}++func (d *Driver) listTables(ctx context.Context) (databricksCatalogMap, error) {+ tablesInfo, err := d.client.Tables.ListAll(ctx, catalog.ListTablesRequest{})+ if err != nil {+ return nil, err+ }++ catalogMap := make(databricksCatalogMap)++ for _, tableInfo := range tablesInfo {+ table := tableUnion{+ typeName: tableInfo.TableType,+ }++ switch tableInfo.TableType {+ case catalog.TableTypeView:+ table.view = &storepb.ViewMetadata{+ Name: tableInfo.Name,+ Definition: tableInfo.ViewDefinition,+ Comment: tableInfo.Comment,+ DependentColumns: convertToDependentColumns(tableInfo.SchemaName, tableInfo.Name, tableInfo.Columns),+ }+ case catalog.TableTypeMaterializedView:+ table.materialView = &storepb.MaterializedViewMetadata{+ Name: tableInfo.Name,+ Definition: tableInfo.ViewDefinition,+ Comment: tableInfo.Comment,+ }+ case catalog.TableTypeExternal:+ table.externalTable = &storepb.ExternalTableMetadata{+ Name: tableInfo.Name,+ }+ // TODO(tommy): find the responding string for the normal table type.+ default:+ table.table = &storepb.TableMetadata{+ Name: tableInfo.Name,+ Columns: convertToColumnMetadata(tableInfo.Columns),+ Comment: tableInfo.Comment,+ }+ }++ if schemaMap, ok := catalogMap[tableInfo.CatalogName]; !ok {+ catalogMap[tableInfo.CatalogName] = databricksSchemaMap{+ tableInfo.SchemaName: []*tableUnion{&table},+ }+ } else {+ if tableList, ok := schemaMap[tableInfo.SchemaName]; ok {+ tableList = append(tableList, &table)+ schemaMap[tableInfo.SchemaName] = tableList+ } else {+ schemaMap[tableInfo.SchemaName] = []*tableUnion{&table}+ }+ }+ }++ return catalogMap, nil+}++func convertToColumnMetadata(columnInfo []catalog.ColumnInfo) []*storepb.ColumnMetadata {+ columns := []*storepb.ColumnMetadata{}+ for _, col := range columnInfo {+ columns = append(columns, &storepb.ColumnMetadata{+ Name: col.Name,+ Position: int32(col.Position),+ Nullable: col.Nullable,+ Type: string(col.TypeName),+ Comment: col.Comment,+ })+ }+ return columns+}++func convertToDependentColumns(schema, table string, columnInfo []catalog.ColumnInfo) []*storepb.DependentColumn {+ columns := []*storepb.DependentColumn{}+ for _, col := range columnInfo {+ columns = append(columns, &storepb.DependentColumn{+ Schema: schema,+ Table: table,+ Column: col.Name,+ })+ }+ return columns+}++func convertToStorepbSchemas(schemaMap databricksSchemaMap) []*storepb.SchemaMetadata {+ schemas := []*storepb.SchemaMetadata{}+ for schemaName, tableList := range schemaMap {+ schemaMetadata := &storepb.SchemaMetadata{+ Name: schemaName,+ }++ for _, table := range tableList {+ switch table.typeName {+ case catalog.TableTypeView:+ schemaMetadata.Views = append(schemaMetadata.Views, table.view)+ case catalog.TableTypeMaterializedView:+ schemaMetadata.MaterializedViews = append(schemaMetadata.MaterializedViews, table.materialView)+ case catalog.TableTypeExternal:+ schemaMetadata.ExternalTables = append(schemaMetadata.ExternalTables, table.externalTable)+ default:+ // TODO(tommy): find the responding string for the normal table type.+ schemaMetadata.Tables = append(schemaMetadata.Tables, table.table)+ }+ }+ schemas = append(schemas, schemaMetadata)+ }+ return schemas+}diff --git a/backend/plugin/db/driver.go b/backend/plugin/db/driver.goindex 42e89341d2..16b7dd2a29 100644--- a/backend/plugin/db/driver.go+++ b/backend/plugin/db/driver.go@@ -185,9 +185,10 @@ type ConnectionConfig struct {// AuthenticationDatabase is only supported for MongoDB now.AuthenticationDatabase string// SID and ServiceName are Oracle only.- SID string- ServiceName string- SSHConfig SSHConfig+ SID string+ ServiceName string+ SSHConfig SSHConfig+ // AuthenticationPrivateKey is used by Snowflake and Databricks (databricks access token).AuthenticationPrivateKey stringConnectionContext ConnectionContext@@ -202,6 +203,9 @@ type ConnectionConfig struct {// Region is the location of where the DB is, works for AWS RDS.Region string++ // AccountID is used by Databricks.+ AccountID string}// SSHConfig is the configuration for connection over SSH.diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex f12b30a9e2..3185d3cbac 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -8,11 +8,6 @@ export const protobufPackage = "google.protobuf";export enum Edition {/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */EDITION_UNKNOWN = "EDITION_UNKNOWN",- /**- * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature- * was first introduced. This is effectively an "infinite past".- */- EDITION_LEGACY = "EDITION_LEGACY",/*** EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like* distinct editions. These can't be used to specify the edition of proto@@ -27,7 +22,6 @@ export enum Edition {* comparison.*/EDITION_2023 = "EDITION_2023",- EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be* used or relyed on outside of tests.@@ -37,12 +31,6 @@ export enum Edition {EDITION_99997_TEST_ONLY = "EDITION_99997_TEST_ONLY",EDITION_99998_TEST_ONLY = "EDITION_99998_TEST_ONLY",EDITION_99999_TEST_ONLY = "EDITION_99999_TEST_ONLY",- /**- * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only- * ever be used by plugins that can expect to never require any changes to- * support a new edition.- */- EDITION_MAX = "EDITION_MAX",UNRECOGNIZED = "UNRECOGNIZED",}@@ -51,9 +39,6 @@ export function editionFromJSON(object: any): Edition {case 0:case "EDITION_UNKNOWN":return Edition.EDITION_UNKNOWN;- case 900:- case "EDITION_LEGACY":- return Edition.EDITION_LEGACY;case 998:case "EDITION_PROTO2":return Edition.EDITION_PROTO2;@@ -63,9 +48,6 @@ export function editionFromJSON(object: any): Edition {case 1000:case "EDITION_2023":return Edition.EDITION_2023;- case 1001:- case "EDITION_2024":- return Edition.EDITION_2024;case 1:case "EDITION_1_TEST_ONLY":return Edition.EDITION_1_TEST_ONLY;@@ -81,9 +63,6 @@ export function editionFromJSON(object: any): Edition {case 99999:case "EDITION_99999_TEST_ONLY":return Edition.EDITION_99999_TEST_ONLY;- case 2147483647:- case "EDITION_MAX":- return Edition.EDITION_MAX;case -1:case "UNRECOGNIZED":default:@@ -95,16 +74,12 @@ export function editionToJSON(object: Edition): string {switch (object) {case Edition.EDITION_UNKNOWN:return "EDITION_UNKNOWN";- case Edition.EDITION_LEGACY:- return "EDITION_LEGACY";case Edition.EDITION_PROTO2:return "EDITION_PROTO2";case Edition.EDITION_PROTO3:return "EDITION_PROTO3";case Edition.EDITION_2023:return "EDITION_2023";- case Edition.EDITION_2024:- return "EDITION_2024";case Edition.EDITION_1_TEST_ONLY:return "EDITION_1_TEST_ONLY";case Edition.EDITION_2_TEST_ONLY:@@ -115,8 +90,6 @@ export function editionToJSON(object: Edition): string {return "EDITION_99998_TEST_ONLY";case Edition.EDITION_99999_TEST_ONLY:return "EDITION_99999_TEST_ONLY";- case Edition.EDITION_MAX:- return "EDITION_MAX";case Edition.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -127,16 +100,12 @@ export function editionToNumber(object: Edition): number {switch (object) {case Edition.EDITION_UNKNOWN:return 0;- case Edition.EDITION_LEGACY:- return 900;case Edition.EDITION_PROTO2:return 998;case Edition.EDITION_PROTO3:return 999;case Edition.EDITION_2023:return 1000;- case Edition.EDITION_2024:- return 1001;case Edition.EDITION_1_TEST_ONLY:return 1;case Edition.EDITION_2_TEST_ONLY:@@ -147,8 +116,6 @@ export function editionToNumber(object: Edition): number {return 99998;case Edition.EDITION_99999_TEST_ONLY:return 99999;- case Edition.EDITION_MAX:- return 2147483647;case Edition.UNRECOGNIZED:default:return -1;@@ -390,12 +357,12 @@ export interface FieldDescriptorProto {* If true, this is a proto3 "optional". When a proto3 field is optional, it* tracks presence regardless of field type.*- * When proto3_optional is true, this field must belong to a oneof to signal- * to old proto3 clients that presence is tracked for this field. This oneof- * is known as a "synthetic" oneof, and this field must be its sole member- * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs- * exist in the descriptor only, and do not generate any API. Synthetic oneofs- * must be ordered after all "real" oneofs.+ * When proto3_optional is true, this field must be belong to a oneof to+ * signal to old proto3 clients that presence is tracked for this field. This+ * oneof is known as a "synthetic" oneof, and this field must be its sole+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic+ * oneofs must be ordered after all "real" oneofs.** For message fields, proto3_optional doesn't create any semantic change,* since non-repeated message fields always track presence. However it still@@ -772,16 +739,12 @@ export interface FileOptions {*/javaGenerateEqualsAndHash: boolean;/**- * A proto2 file can set this to true to opt in to UTF-8 checking for Java,- * which will throw an exception if invalid UTF-8 is parsed from the wire or- * assigned to a string field.- *- * TODO: clarify exactly what kinds of field types this option- * applies to, and update these docs accordingly.- *- * Proto3 files already perform these checks. Setting the option explicitly to- * false has no effect: it cannot be used to opt proto3 files out of UTF-8- * checks.+ * If set true, then the Java2 code generator will generate code that+ * throws an exception whenever an attempt is made to assign a non-UTF-8+ * byte sequence to a string field.+ * Message reflection will do the same.+ * However, an extension field still accepts non-UTF-8 byte sequences.+ * This option has no effect on when used with the lite runtime.*/javaStringCheckUtf8: boolean;optimizeFor: FileOptions_OptimizeMode;@@ -808,6 +771,7 @@ export interface FileOptions {ccGenericServices: boolean;javaGenericServices: boolean;pyGenericServices: boolean;+ phpGenericServices: boolean;/*** Is this file deprecated?* Depending on the target platform, this can emit Deprecated annotations@@ -961,6 +925,10 @@ export interface MessageOptions {*/deprecated: boolean;/**+ * NOTE: Do not set the option in .proto files. Always use the maps syntax+ * instead. The option should only be implicitly set by the proto compiler+ * parser.+ ** Whether the message is an automatically generated map entry type for the* maps field.*@@ -978,10 +946,6 @@ export interface MessageOptions {* use a native map in the target language to hold the keys and values.* The reflection APIs in such implementations still need to work as* if the field is a repeated message field.- *- * NOTE: Do not set the option in .proto files. Always use the maps syntax- * instead. The option should only be implicitly set by the proto compiler- * parser.*/mapEntry: boolean;/**@@ -1059,11 +1023,19 @@ export interface FieldOptions {* call from multiple threads concurrently, while non-const methods continue* to require exclusive access.*- * Note that lazy message fields are still eagerly verified to check- * ill-formed wireformat or missing required fields. Calling IsInitialized()- * on the outer message would fail if the inner message has missing required- * fields. Failed verification would result in parsing failure (except when- * uninitialized messages are acceptable).+ * Note that implementations may choose not to check required fields within+ * a lazy sub-message. That is, calling IsInitialized() on the outer message+ * may return true even if the inner message has missing required fields.+ * This is necessary because otherwise the inner message would have to be+ * parsed in order to perform the check, defeating the purpose of lazy+ * parsing. An implementation which chooses not to check required fields+ * must be consistent about it. That is, for any particular sub-message, the+ * implementation must either *always* check its required fields, or *never*+ * check its required fields, regardless of whether or not the message has+ * been parsed.+ *+ * As of May 2022, lazy verifies the contents of the byte stream during+ * parsing. An invalid byte stream will cause the overall parsing to fail.*/lazy: boolean;/**@@ -1090,9 +1062,8 @@ export interface FieldOptions {targets: FieldOptions_OptionTargetType[];editionDefaults: FieldOptions_EditionDefault[];/** Any features defined in the specific edition. */- features: FeatureSet | undefined;- featureSupport:- | FieldOptions_FeatureSupport+ features:+ | FeatureSet| undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];@@ -1395,32 +1366,6 @@ export interface FieldOptions_EditionDefault {value: string;}-/** Information about the support window of a feature. */-export interface FieldOptions_FeatureSupport {- /**- * The edition that this feature was first available in. In editions- * earlier than this one, the default assigned to EDITION_LEGACY will be- * used, and proto files will not be able to override it.- */- editionIntroduced: Edition;- /**- * The edition this feature becomes deprecated in. Using this after this- * edition may trigger warnings.- */- editionDeprecated: Edition;- /**- * The deprecation warning text if this feature is used after the edition it- * was marked deprecated in.- */- deprecationWarning: string;- /**- * The edition this feature is no longer available in. In editions after- * this one, the last default assigned will be used, and proto files will- * not be able to override it.- */- editionRemoved: Edition;-}-export interface OneofOptions {/** Any features defined in the specific edition. */features:@@ -1480,10 +1425,6 @@ export interface EnumValueOptions {* credentials.*/debugRedact: boolean;- /** Information about the support window of a feature value. */- featureSupport:- | FieldOptions_FeatureSupport- | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1801,8 +1742,8 @@ export function featureSet_RepeatedFieldEncodingToNumber(object: FeatureSet_Repeexport enum FeatureSet_Utf8Validation {UTF8_VALIDATION_UNKNOWN = "UTF8_VALIDATION_UNKNOWN",- VERIFY = "VERIFY",NONE = "NONE",+ VERIFY = "VERIFY",UNRECOGNIZED = "UNRECOGNIZED",}@@ -1811,12 +1752,12 @@ export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Vcase 0:case "UTF8_VALIDATION_UNKNOWN":return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;+ case 1:+ case "NONE":+ return FeatureSet_Utf8Validation.NONE;case 2:case "VERIFY":return FeatureSet_Utf8Validation.VERIFY;- case 3:- case "NONE":- return FeatureSet_Utf8Validation.NONE;case -1:case "UNRECOGNIZED":default:@@ -1828,10 +1769,10 @@ export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validatioswitch (object) {case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:return "UTF8_VALIDATION_UNKNOWN";- case FeatureSet_Utf8Validation.VERIFY:- return "VERIFY";case FeatureSet_Utf8Validation.NONE:return "NONE";+ case FeatureSet_Utf8Validation.VERIFY:+ return "VERIFY";case FeatureSet_Utf8Validation.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -1842,10 +1783,10 @@ export function featureSet_Utf8ValidationToNumber(object: FeatureSet_Utf8Validatswitch (object) {case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:return 0;+ case FeatureSet_Utf8Validation.NONE:+ return 1;case FeatureSet_Utf8Validation.VERIFY:return 2;- case FeatureSet_Utf8Validation.NONE:- return 3;case FeatureSet_Utf8Validation.UNRECOGNIZED:default:return -1;@@ -1986,12 +1927,7 @@ export interface FeatureSetDefaults {*/export interface FeatureSetDefaults_FeatureSetEditionDefault {edition: Edition;- /** Defaults of features that can be overridden in this edition. */- overridableFeatures:- | FeatureSet- | undefined;- /** Defaults of features that can't be overridden in this edition. */- fixedFeatures: FeatureSet | undefined;+ features: FeatureSet | undefined;}/**@@ -2053,7 +1989,7 @@ export interface SourceCodeInfo_Location {* location.** Each element is a field number or an index. They form a path from- * the root FileDescriptorProto to the place where the definition appears.+ * the root FileDescriptorProto to the place where the definition occurs.* For example, this path:* [ 4, 3, 2, 7, 1 ]* refers to:@@ -4051,6 +3987,7 @@ function createBaseFileOptions(): FileOptions {ccGenericServices: false,javaGenericServices: false,pyGenericServices: false,+ phpGenericServices: false,deprecated: false,ccEnableArenas: false,objcClassPrefix: "",@@ -4097,6 +4034,9 @@ export const FileOptions = {if (message.pyGenericServices === true) {writer.uint32(144).bool(message.pyGenericServices);}+ if (message.phpGenericServices === true) {+ writer.uint32(336).bool(message.phpGenericServices);+ }if (message.deprecated === true) {writer.uint32(184).bool(message.deprecated);}@@ -4210,6 +4150,13 @@ export const FileOptions = {message.pyGenericServices = reader.bool();continue;+ case 42:+ if (tag !== 336) {+ break;+ }++ message.phpGenericServices = reader.bool();+ continue;case 23:if (tag !== 184) {break;@@ -4312,6 +4259,7 @@ export const FileOptions = {ccGenericServices: isSet(object.ccGenericServices) ? globalThis.Boolean(object.ccGenericServices) : false,javaGenericServices: isSet(object.javaGenericServices) ? globalThis.Boolean(object.javaGenericServices) : false,pyGenericServices: isSet(object.pyGenericServices) ? globalThis.Boolean(object.pyGenericServices) : false,+ phpGenericServices: isSet(object.phpGenericServices) ? globalThis.Boolean(object.phpGenericServices) : false,deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,ccEnableArenas: isSet(object.ccEnableArenas) ? globalThis.Boolean(object.ccEnableArenas) : false,objcClassPrefix: isSet(object.objcClassPrefix) ? globalThis.String(object.objcClassPrefix) : "",@@ -4360,6 +4308,9 @@ export const FileOptions = {if (message.pyGenericServices === true) {obj.pyGenericServices = message.pyGenericServices;}+ if (message.phpGenericServices === true) {+ obj.phpGenericServices = message.phpGenericServices;+ }if (message.deprecated === true) {obj.deprecated = message.deprecated;}@@ -4411,6 +4362,7 @@ export const FileOptions = {message.ccGenericServices = object.ccGenericServices ?? false;message.javaGenericServices = object.javaGenericServices ?? false;message.pyGenericServices = object.pyGenericServices ?? false;+ message.phpGenericServices = object.phpGenericServices ?? false;message.deprecated = object.deprecated ?? false;message.ccEnableArenas = object.ccEnableArenas ?? false;message.objcClassPrefix = object.objcClassPrefix ?? "";@@ -4609,7 +4561,6 @@ function createBaseFieldOptions(): FieldOptions {targets: [],editionDefaults: [],features: undefined,- featureSupport: undefined,uninterpretedOption: [],};}@@ -4654,9 +4605,6 @@ export const FieldOptions = {if (message.features !== undefined) {FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();}- if (message.featureSupport !== undefined) {- FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(178).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4764,13 +4712,6 @@ export const FieldOptions = {message.features = FeatureSet.decode(reader, reader.uint32());continue;- case 22:- if (tag !== 178) {- break;- }-- message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -4807,9 +4748,6 @@ export const FieldOptions = {? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e)): [],features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,- featureSupport: isSet(object.featureSupport)- ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)- : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4854,9 +4792,6 @@ export const FieldOptions = {if (message.features !== undefined) {obj.features = FeatureSet.toJSON(message.features);}- if (message.featureSupport !== undefined) {- obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4882,9 +4817,6 @@ export const FieldOptions = {message.features = (object.features !== undefined && object.features !== null)? FeatureSet.fromPartial(object.features): undefined;- message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)- ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4964,119 +4896,6 @@ export const FieldOptions_EditionDefault = {},};-function createBaseFieldOptions_FeatureSupport(): FieldOptions_FeatureSupport {- return {- editionIntroduced: Edition.EDITION_UNKNOWN,- editionDeprecated: Edition.EDITION_UNKNOWN,- deprecationWarning: "",- editionRemoved: Edition.EDITION_UNKNOWN,- };-}--export const FieldOptions_FeatureSupport = {- encode(message: FieldOptions_FeatureSupport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {- writer.uint32(8).int32(editionToNumber(message.editionIntroduced));- }- if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {- writer.uint32(16).int32(editionToNumber(message.editionDeprecated));- }- if (message.deprecationWarning !== "") {- writer.uint32(26).string(message.deprecationWarning);- }- if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {- writer.uint32(32).int32(editionToNumber(message.editionRemoved));- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_FeatureSupport {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFieldOptions_FeatureSupport();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.editionIntroduced = editionFromJSON(reader.int32());- continue;- case 2:- if (tag !== 16) {- break;- }-- message.editionDeprecated = editionFromJSON(reader.int32());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.deprecationWarning = reader.string();- continue;- case 4:- if (tag !== 32) {- break;- }-- message.editionRemoved = editionFromJSON(reader.int32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): FieldOptions_FeatureSupport {- return {- editionIntroduced: isSet(object.editionIntroduced)- ? editionFromJSON(object.editionIntroduced)- : Edition.EDITION_UNKNOWN,- editionDeprecated: isSet(object.editionDeprecated)- ? editionFromJSON(object.editionDeprecated)- : Edition.EDITION_UNKNOWN,- deprecationWarning: isSet(object.deprecationWarning) ? globalThis.String(object.deprecationWarning) : "",- editionRemoved: isSet(object.editionRemoved) ? editionFromJSON(object.editionRemoved) : Edition.EDITION_UNKNOWN,- };- },-- toJSON(message: FieldOptions_FeatureSupport): unknown {- const obj: any = {};- if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {- obj.editionIntroduced = editionToJSON(message.editionIntroduced);- }- if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {- obj.editionDeprecated = editionToJSON(message.editionDeprecated);- }- if (message.deprecationWarning !== "") {- obj.deprecationWarning = message.deprecationWarning;- }- if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {- obj.editionRemoved = editionToJSON(message.editionRemoved);- }- return obj;- },-- create(base?: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {- return FieldOptions_FeatureSupport.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {- const message = createBaseFieldOptions_FeatureSupport();- message.editionIntroduced = object.editionIntroduced ?? Edition.EDITION_UNKNOWN;- message.editionDeprecated = object.editionDeprecated ?? Edition.EDITION_UNKNOWN;- message.deprecationWarning = object.deprecationWarning ?? "";- message.editionRemoved = object.editionRemoved ?? Edition.EDITION_UNKNOWN;- return message;- },-};-function createBaseOneofOptions(): OneofOptions {return { features: undefined, uninterpretedOption: [] };}@@ -5287,13 +5106,7 @@ export const EnumOptions = {};function createBaseEnumValueOptions(): EnumValueOptions {- return {- deprecated: false,- features: undefined,- debugRedact: false,- featureSupport: undefined,- uninterpretedOption: [],- };+ return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };}export const EnumValueOptions = {@@ -5307,9 +5120,6 @@ export const EnumValueOptions = {if (message.debugRedact === true) {writer.uint32(24).bool(message.debugRedact);}- if (message.featureSupport !== undefined) {- FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(34).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -5344,13 +5154,6 @@ export const EnumValueOptions = {message.debugRedact = reader.bool();continue;- case 4:- if (tag !== 34) {- break;- }-- message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -5372,9 +5175,6 @@ export const EnumValueOptions = {deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,- featureSupport: isSet(object.featureSupport)- ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)- : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -5392,9 +5192,6 @@ export const EnumValueOptions = {if (message.debugRedact === true) {obj.debugRedact = message.debugRedact;}- if (message.featureSupport !== undefined) {- obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -5411,9 +5208,6 @@ export const EnumValueOptions = {? FeatureSet.fromPartial(object.features): undefined;message.debugRedact = object.debugRedact ?? false;- message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)- ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -6110,7 +5904,7 @@ export const FeatureSetDefaults = {};function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {- return { edition: Edition.EDITION_UNKNOWN, overridableFeatures: undefined, fixedFeatures: undefined };+ return { edition: Edition.EDITION_UNKNOWN, features: undefined };}export const FeatureSetDefaults_FeatureSetEditionDefault = {@@ -6118,11 +5912,8 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {if (message.edition !== Edition.EDITION_UNKNOWN) {writer.uint32(24).int32(editionToNumber(message.edition));}- if (message.overridableFeatures !== undefined) {- FeatureSet.encode(message.overridableFeatures, writer.uint32(34).fork()).ldelim();- }- if (message.fixedFeatures !== undefined) {- FeatureSet.encode(message.fixedFeatures, writer.uint32(42).fork()).ldelim();+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();}return writer;},@@ -6141,19 +5932,12 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {message.edition = editionFromJSON(reader.int32());continue;- case 4:- if (tag !== 34) {- break;- }-- message.overridableFeatures = FeatureSet.decode(reader, reader.uint32());- continue;- case 5:- if (tag !== 42) {+ case 2:+ if (tag !== 18) {break;}- message.fixedFeatures = FeatureSet.decode(reader, reader.uint32());+ message.features = FeatureSet.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -6167,10 +5951,7 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {return {edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,- overridableFeatures: isSet(object.overridableFeatures)- ? FeatureSet.fromJSON(object.overridableFeatures)- : undefined,- fixedFeatures: isSet(object.fixedFeatures) ? FeatureSet.fromJSON(object.fixedFeatures) : undefined,+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,};},@@ -6179,11 +5960,8 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {if (message.edition !== Edition.EDITION_UNKNOWN) {obj.edition = editionToJSON(message.edition);}- if (message.overridableFeatures !== undefined) {- obj.overridableFeatures = FeatureSet.toJSON(message.overridableFeatures);- }- if (message.fixedFeatures !== undefined) {- obj.fixedFeatures = FeatureSet.toJSON(message.fixedFeatures);+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);}return obj;},@@ -6196,11 +5974,8 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {): FeatureSetDefaults_FeatureSetEditionDefault {const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();message.edition = object.edition ?? Edition.EDITION_UNKNOWN;- message.overridableFeatures = (object.overridableFeatures !== undefined && object.overridableFeatures !== null)- ? FeatureSet.fromPartial(object.overridableFeatures)- : undefined;- message.fixedFeatures = (object.fixedFeatures !== undefined && object.fixedFeatures !== null)- ? FeatureSet.fromPartial(object.fixedFeatures)+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features): undefined;return message;},diff --git a/frontend/src/types/proto/store/common.ts b/frontend/src/types/proto/store/common.tsindex f736f8c787..696bf47ac6 100644--- a/frontend/src/types/proto/store/common.ts+++ b/frontend/src/types/proto/store/common.ts@@ -29,6 +29,7 @@ export enum Engine {ELASTICSEARCH = "ELASTICSEARCH",BIGQUERY = "BIGQUERY",DYNAMODB = "DYNAMODB",+ DATABRICKS = "DATABRICKS",UNRECOGNIZED = "UNRECOGNIZED",}@@ -106,6 +107,9 @@ export function engineFromJSON(object: any): Engine {case 23:case "DYNAMODB":return Engine.DYNAMODB;+ case 24:+ case "DATABRICKS":+ return Engine.DATABRICKS;case -1:case "UNRECOGNIZED":default:@@ -163,6 +167,8 @@ export function engineToJSON(object: Engine): string {return "BIGQUERY";case Engine.DYNAMODB:return "DYNAMODB";+ case Engine.DATABRICKS:+ return "DATABRICKS";case Engine.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -219,6 +225,8 @@ export function engineToNumber(object: Engine): number {return 22;case Engine.DYNAMODB:return 23;+ case Engine.DATABRICKS:+ return 24;case Engine.UNRECOGNIZED:default:return -1;diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.tsindex e14d5ca628..1e14e8accf 100644--- a/frontend/src/types/proto/store/data_source.ts+++ b/frontend/src/types/proto/store/data_source.ts@@ -246,6 +246,8 @@ export interface DataSourceOptions {directConnection: boolean;/** region is the location of where the DB is, works for AWS RDS. For example, us-east-1. */region: string;+ /** account_id is used by Databricks. */+ accountId: string;}export enum DataSourceOptions_AuthenticationType {@@ -639,6 +641,7 @@ function createBaseDataSourceOptions(): DataSourceOptions {replicaSet: "",directConnection: false,region: "",+ accountId: "",};}@@ -695,6 +698,9 @@ export const DataSourceOptions = {if (message.region !== "") {writer.uint32(138).string(message.region);}+ if (message.accountId !== "") {+ writer.uint32(146).string(message.accountId);+ }return writer;},@@ -824,6 +830,13 @@ export const DataSourceOptions = {message.region = reader.string();continue;+ case 18:+ if (tag !== 146) {+ break;+ }++ message.accountId = reader.string();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -864,6 +877,7 @@ export const DataSourceOptions = {replicaSet: isSet(object.replicaSet) ? globalThis.String(object.replicaSet) : "",directConnection: isSet(object.directConnection) ? globalThis.Boolean(object.directConnection) : false,region: isSet(object.region) ? globalThis.String(object.region) : "",+ accountId: isSet(object.accountId) ? globalThis.String(object.accountId) : "",};},@@ -920,6 +934,9 @@ export const DataSourceOptions = {if (message.region !== "") {obj.region = message.region;}+ if (message.accountId !== "") {+ obj.accountId = message.accountId;+ }return obj;},@@ -951,6 +968,7 @@ export const DataSourceOptions = {message.replicaSet = object.replicaSet ?? "";message.directConnection = object.directConnection ?? false;message.region = object.region ?? "";+ message.accountId = object.accountId ?? "";return message;},};diff --git a/go.mod b/go.modindex 14673f4fb6..2c2573feb2 100644--- a/go.mod+++ b/go.mod@@ -29,6 +29,7 @@ require (github.com/bytebase/tidb-parser v0.0.0-20240112100539-135234be63bdgithub.com/cenkalti/backoff/v4 v4.3.0github.com/coreos/go-oidc v2.2.1+incompatible+ github.com/databricks/databricks-sdk-go v0.12.0github.com/epiclabs-io/diff3 v0.0.0-20240325112732-ba77e92bf0e4github.com/github/gh-ost v1.1.6github.com/go-ego/gse v0.80.2@@ -95,7 +96,7 @@ require ()require (- cloud.google.com/go/auth v0.4.2 // indirect+ cloud.google.com/go/auth v0.5.0 // indirectcloud.google.com/go/auth/oauth2adapt v0.2.2 // indirectfilippo.io/edwards25519 v1.1.0 // indirectgithub.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect@@ -127,7 +128,7 @@ require (github.com/felixge/httpsnoop v1.0.4 // indirectgithub.com/go-asn1-ber/asn1-ber v1.5.5 // indirectgithub.com/go-jose/go-jose/v4 v4.0.1 // indirect- github.com/go-logr/logr v1.4.1 // indirect+ github.com/go-logr/logr v1.4.2 // indirectgithub.com/go-logr/stdr v1.2.2 // indirectgithub.com/go-zookeeper/zk v1.0.1 // indirectgithub.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect@@ -135,6 +136,7 @@ require (github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirectgithub.com/golang-sql/sqlexp v0.1.0 // indirectgithub.com/google/btree v1.1.2 // indirect+ github.com/google/go-querystring v1.1.0 // indirectgithub.com/google/s2a-go v0.1.7 // indirectgithub.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirectgithub.com/hashicorp/errwrap v1.1.0 // indirect@@ -180,12 +182,13 @@ require (go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirectgo.etcd.io/etcd/client/v3 v3.5.10 // indirectgo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect- go.opentelemetry.io/otel/metric v1.26.0 // indirect+ go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect+ go.opentelemetry.io/otel/metric v1.27.0 // indirectgo.uber.org/zap v1.27.0 // indirectgolang.org/x/mod v0.17.0 // indirectgolang.org/x/sys v0.20.0 // indirectgolang.org/x/term v0.20.0 // indirect+ gopkg.in/ini.v1 v1.67.0 // indirect)require (@@ -296,8 +299,8 @@ require (github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirectgithub.com/yusufpapurcu/wmi v1.2.3 // indirectgo.opencensus.io v0.24.0 // indirect- go.opentelemetry.io/otel v1.26.0 // indirect- go.opentelemetry.io/otel/trace v1.26.0 // indirect+ go.opentelemetry.io/otel v1.27.0 // indirect+ go.opentelemetry.io/otel/trace v1.27.0 // indirectgo.uber.org/atomic v1.11.0 // indirectgolang.org/x/net v0.25.0 // indirectgolang.org/x/sync v0.7.0 // indirectdiff --git a/go.sum b/go.sumindex b89c80e17f..096cd8c09a 100644--- a/go.sum+++ b/go.sum@@ -99,8 +99,8 @@ cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVocloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo=cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0=cloud.google.com/go/assuredworkloads v1.10.0/go.mod h1:kwdUQuXcedVdsIaKgKTp9t0UJkE5+PAVNhdQm4ZVq2E=-cloud.google.com/go/auth v0.4.2 h1:sb0eyLkhRtpq5jA+a8KWw0W70YcdVca7KJ8TM0AFYDg=-cloud.google.com/go/auth v0.4.2/go.mod h1:Kqvlz1cf1sNA0D+sYJnkPQOP+JMHkuHeIgVmCRtZOLc=+cloud.google.com/go/auth v0.5.0 h1:GtSZfKJkPrZi/s3AkiHnUYVI4dTP/kg8+I3unm0omag=+cloud.google.com/go/auth v0.5.0/go.mod h1:Kqvlz1cf1sNA0D+sYJnkPQOP+JMHkuHeIgVmCRtZOLc=cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4=cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q=cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0=@@ -893,6 +893,8 @@ github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8github.com/danieljoos/wincred v1.2.1/go.mod h1:uGaFL9fDn3OLTvzCGulzE+SzjEe5NGlh5FdCcyfPwps=github.com/danjacques/gofslock v0.0.0-20220131014315-6e321f4509c8 h1:+4P40F8AqFAW4/ft2WXiZXrgtRbS8RLb61D8e6NcMw0=github.com/danjacques/gofslock v0.0.0-20220131014315-6e321f4509c8/go.mod h1:VT5Ecrx/r1oHkQbiEBwkLiuQ51igUBmxXuiw9tnSLqY=+github.com/databricks/databricks-sdk-go v0.12.0 h1:VgMJpvEiyRRrJ0mQx22Rkc73zjxUe125Ou9c5C99phM=+github.com/databricks/databricks-sdk-go v0.12.0/go.mod h1:h/oWnnfWcJQAotAhZS/GMnlcaE/8WhuZ5Vj7el/6Gn8=github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=@@ -1016,8 +1018,8 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=-github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=-github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=+github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=+github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8=@@ -1146,6 +1148,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNgithub.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=+github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=+github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=@@ -1916,16 +1920,16 @@ go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg=go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0=-go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk=-go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw=-go.opentelemetry.io/otel v1.26.0 h1:LQwgL5s/1W7YiiRwxf03QGnWLb2HW4pLiAhaA5cZXBs=-go.opentelemetry.io/otel v1.26.0/go.mod h1:UmLkJHUAidDval2EICqBMbnAd0/m2vmpf/dAM+fvFs4=-go.opentelemetry.io/otel/metric v1.26.0 h1:7S39CLuY5Jgg9CrnA9HHiEjGMF/X2VHvoXGgSllRz30=-go.opentelemetry.io/otel/metric v1.26.0/go.mod h1:SY+rHOI4cEawI9a7N1A4nIg/nTQXe1ccCNWYOJUrpX4=+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A=+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0=+go.opentelemetry.io/otel v1.27.0 h1:9BZoF3yMK/O1AafMiQTVu0YDj5Ea4hPhxCs7sGva+cg=+go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ=+go.opentelemetry.io/otel/metric v1.27.0 h1:hvj3vdEKyeCi4YaYfNjv2NUje8FqKqUY8IlF0FxV/ik=+go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak=go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucgoDw=go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg=-go.opentelemetry.io/otel/trace v1.26.0 h1:1ieeAUb4y0TE26jUFrCIXKpTuVK7uJGN9/Z/2LP5sQA=-go.opentelemetry.io/otel/trace v1.26.0/go.mod h1:4iDxvGDQuUkHve82hJJ8UqrwswHYsZuWCBllGV2U2y0=+go.opentelemetry.io/otel/trace v1.27.0 h1:IqYb813p7cmbHk0a5y6pD5JPakbVfftRXABGt5/Rscw=+go.opentelemetry.io/otel/trace v1.27.0/go.mod h1:6RiD1hkAprV4/q+yd2ln1HG9GoPx39SuvvstaLBl+l4=go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=@@ -2732,6 +2736,8 @@ gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s=+gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=+gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 3227013969..8c4b8a8504 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -12103,6 +12103,7 @@ components:- ELASTICSEARCH- BIGQUERY- DYNAMODB+ - DATABRICKStype: stringformat: enumenabled:@@ -12142,6 +12143,7 @@ components:- ELASTICSEARCH- BIGQUERY- DYNAMODB+ - DATABRICKStype: stringformat: enumcategory:@@ -12181,6 +12183,7 @@ components:- ELASTICSEARCH- BIGQUERY- DYNAMODB+ - DATABRICKStype: stringformat: enumcategory:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 1d833f465a..6b195c78f3 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -708,6 +708,7 @@ Used internally for obfuscating the page token.| ELASTICSEARCH | 21 | || BIGQUERY | 22 | || DYNAMODB | 23 | |+| DATABRICKS | 24 | |@@ -1702,6 +1703,7 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti| replica_set | [string](#string) | | replica_set is used for MongoDB replica set. || direct_connection | [bool](#bool) | | direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. || region | [string](#string) | | region is the location of where the DB is, works for AWS RDS. For example, us-east-1. |+| account_id | [string](#string) | | account_id is used by Databricks. |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 3d2ebbc45e..c75d8cdd35 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -2234,6 +2234,12 @@ If `true`, other fields are available. </p></td><td><p></p></td></tr>+ <tr>+ <td>DATABRICKS</td>+ <td>24</td>+ <td><p></p></td>+ </tr>+</tbody></table>@@ -4825,6 +4831,13 @@ Used for authentication when connecting to the data source. </p></td><td><p>region is the location of where the DB is, works for AWS RDS. For example, us-east-1. </p></td></tr>+ <tr>+ <td>account_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>account_id is used by Databricks. </p></td>+ </tr>+</tbody></table>diff --git a/proto/generated-go/store/common.pb.go b/proto/generated-go/store/common.pb.goindex 24cc090ea7..57875d72a7 100644--- a/proto/generated-go/store/common.pb.go+++ b/proto/generated-go/store/common.pb.go@@ -47,6 +47,7 @@ const (Engine_ELASTICSEARCH Engine = 21Engine_BIGQUERY Engine = 22Engine_DYNAMODB Engine = 23+ Engine_DATABRICKS Engine = 24)// Enum value maps for Engine.@@ -76,6 +77,7 @@ var (21: "ELASTICSEARCH",22: "BIGQUERY",23: "DYNAMODB",+ 24: "DATABRICKS",}Engine_value = map[string]int32{"ENGINE_UNSPECIFIED": 0,@@ -102,6 +104,7 @@ var ("ELASTICSEARCH": 21,"BIGQUERY": 22,"DYNAMODB": 23,+ "DATABRICKS": 24,})@@ -421,7 +424,7 @@ var file_store_common_proto_rawDesc = []byte{0x36, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c,0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12,0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,- 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2a, 0xd5, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69,+ 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2a, 0xe5, 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,@@ -442,7 +445,8 @@ var file_store_common_proto_rawDesc = []byte{0x4f, 0x52, 0x49, 0x53, 0x10, 0x13, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x56, 0x45, 0x10, 0x14,0x12, 0x11, 0x0a, 0x0d, 0x45, 0x4c, 0x41, 0x53, 0x54, 0x49, 0x43, 0x53, 0x45, 0x41, 0x52, 0x43,0x48, 0x10, 0x15, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x49, 0x47, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10,- 0x16, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x59, 0x4e, 0x41, 0x4d, 0x4f, 0x44, 0x42, 0x10, 0x17, 0x2a,+ 0x16, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x59, 0x4e, 0x41, 0x4d, 0x4f, 0x44, 0x42, 0x10, 0x17, 0x12,+ 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54, 0x41, 0x42, 0x52, 0x49, 0x43, 0x4b, 0x53, 0x10, 0x18, 0x2a,0x5c, 0x0a, 0x07, 0x56, 0x43, 0x53, 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, 0x48, 0x55, 0x42, 0x10, 0x01,diff --git a/proto/generated-go/store/data_source.pb.go b/proto/generated-go/store/data_source.pb.goindex 3d3a676182..c296b2fbea 100644--- a/proto/generated-go/store/data_source.pb.go+++ b/proto/generated-go/store/data_source.pb.go@@ -396,6 +396,8 @@ type DataSourceOptions struct {DirectConnection bool `protobuf:"varint,16,opt,name=direct_connection,json=directConnection,proto3" json:"direct_connection,omitempty"`// region is the location of where the DB is, works for AWS RDS. For example, us-east-1.Region string `protobuf:"bytes,17,opt,name=region,proto3" json:"region,omitempty"`+ // account_id is used by Databricks.+ AccountId string `protobuf:"bytes,18,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`}func (x *DataSourceOptions) Reset() {@@ -549,6 +551,13 @@ func (x *DataSourceOptions) GetRegion() string {return ""}+func (x *DataSourceOptions) GetAccountId() string {+ if x != nil {+ return x.AccountId+ }+ return ""+}+type SASLConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -900,7 +909,7 @@ var file_store_data_source_proto_rawDesc = []byte{0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x41,0x55, 0x4c, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42, 0x0d,- 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x89, 0x08,+ 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x08,0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69,0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,@@ -955,39 +964,41 @@ var file_store_data_source_proto_rawDesc = []byte{0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x64,0x69, 0x72, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65,- 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x41, 0x75,- 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65,- 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49,- 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18,- 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53,- 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f,- 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22, 0x5a, 0x0a, 0x0a, 0x53, 0x41, 0x53,- 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0a, 0x6b, 0x72, 0x62, 0x5f, 0x63,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x72,- 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6b,- 0x72, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68,- 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72,- 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d,- 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,- 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14,- 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72,- 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19, 0x0a, 0x08,- 0x6b, 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x6b, 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x70,- 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50, 0x6f,- 0x72, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,- 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,- 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 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,+ 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75,+ 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63,+ 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,+ 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x41, 0x75, 0x74,+ 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f,+ 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a,+ 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51,+ 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f, 0x52,+ 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22, 0x5a, 0x0a, 0x0a, 0x53, 0x41, 0x53, 0x4c,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0a, 0x6b, 0x72, 0x62, 0x5f, 0x63, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x72, 0x62,+ 0x65, 0x72, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6b, 0x72,+ 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0b, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61,+ 0x6e, 0x69, 0x73, 0x6d, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f,+ 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,+ 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,+ 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a,+ 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65,+ 0x61, 0x6c, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x74, 0x61, 0x62, 0x12, 0x19, 0x0a, 0x08, 0x6b,+ 0x64, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b,+ 0x64, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x64, 0x63, 0x5f, 0x70, 0x6f,+ 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x64, 0x63, 0x50, 0x6f, 0x72,+ 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x64, 0x63, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,+ 0x72, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x14, 0x6b, 0x64, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50,+ 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 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 daccc0d718..3aef1e6f36 100644--- a/proto/store/common.proto+++ b/proto/store/common.proto@@ -35,6 +35,7 @@ enum Engine {ELASTICSEARCH = 21;BIGQUERY = 22;DYNAMODB = 23;+ DATABRICKS = 24;}enum VCSType {diff --git a/proto/store/data_source.proto b/proto/store/data_source.protoindex 4b443a9f02..5fcc8cc8e7 100644--- a/proto/store/data_source.proto+++ b/proto/store/data_source.proto@@ -109,6 +109,8 @@ message DataSourceOptions {// region is the location of where the DB is, works for AWS RDS. For example, us-east-1.string region = 17;+ // account_id is used by Databricks.+ string account_id = 18;}message SASLConfig {