Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
},
{
"$ref": "metadataExporterConnectors/bigQueryConnection.json"
},
{
"$ref": "metadataExporterConnectors/trinoConnection.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"$id": "https://open-metadata.org/schema/entity/services/connections/database/trinoConnection.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TrinoConnection",
"description": "Trino Connection Config",
"type": "object",
"definitions": {
"trinoType": {
"description": "Service type.",
"type": "string",
"enum": [
"Trino"
],
"default": "Trino"
},
"trinoScheme": {
"description": "SQLAlchemy driver scheme options.",
"type": "string",
"enum": [
"trino"
],
"default": "trino"
}
},
"properties": {
"type": {
"title": "Service Type",
"description": "Service Type",
"$ref": "#/definitions/trinoType",
"default": "Trino"
},
"scheme": {
"title": "Connection Scheme",
"description": "SQLAlchemy driver scheme options.",
"$ref": "#/definitions/trinoScheme",
"default": "trino"
},
"username": {
"title": "Username",
"description": "Username to connect to Trino.",
"type": "string"
},
"authType": {
"title": "Auth Configuration Type",
"description": "Choose Auth Config Type.",
"oneOf": [
{
"$ref": "../../../../services/connections/database/common/basicAuth.json"
},
{
"$ref": "../../../../services/connections/database/common/jwtAuth.json"
},
{
"$ref": "../../../../services/connections/database/common/azureConfig.json"
},
{
"$ref": "../../../../services/connections/database/common/noConfigAuthenticationTypes.json"
}
]
},
"hostPort": {
"title": "Host and Port",
"description": "Host and port of the Trino service.",
"type": "string"
},
"catalog": {
"title": "Catalog",
"description": "Catalog of the data source.",
"type": "string"
},
"databaseSchema": {
"title": "Database Schema",
"description": "Database Schema of the data source.",
"type": "string"
},
"connectionOptions": {
"title": "Connection Options",
"$ref": "../../../../services/connections/connectionBasicType.json#/definitions/connectionOptions"
},
"connectionArguments": {
"title": "Connection Arguments",
"$ref": "../../../../services/connections/connectionBasicType.json#/definitions/connectionArguments"
}
},
"additionalProperties": false,
"required": [
"hostPort",
"username"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface CreateTestDefinition {
/**
* Description of the testcase.
*/
description: string;
description?: string;
/**
* Display Name that identifies this test case.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export interface MetadataExporterAppConfig {
* Databricks Connection Config
*
* Google BigQuery Connection Config
*
* Trino Connection Config
*/
export interface Connection {
/**
Expand Down Expand Up @@ -102,6 +104,8 @@ export interface Connection {
/**
* Username to connect to Snowflake. This user should have privileges to read all the
* metadata in Snowflake.
*
* Username to connect to Trino.
*/
username?: string;
/**
Expand All @@ -110,12 +114,16 @@ export interface Connection {
warehouse?: string;
/**
* Choose between different authentication types for Databricks.
*
* Choose Auth Config Type.
*/
authType?: AuthenticationType;
authType?: AuthenticationType | NoConfigAuthenticationTypes;
/**
* Catalog of the data source(Example: hive_metastore). This is optional parameter, if you
* would like to restrict the metadata reading to a single catalog. When left blank,
* OpenMetadata Ingestion attempts to scan all the catalog.
*
* Catalog of the data source.
*/
catalog?: string;
/**
Expand All @@ -128,12 +136,16 @@ export interface Connection {
* Database Schema of the data source. This is optional parameter, if you would like to
* restrict the metadata reading to a single schema. When left blank, OpenMetadata Ingestion
* attempts to scan all the schemas.
*
* Database Schema of the data source.
*/
databaseSchema?: string;
/**
* Host and port of the Databricks service.
*
* BigQuery APIs URL.
*
* Host and port of the Trino service.
*/
hostPort?: string;
/**
Expand Down Expand Up @@ -174,6 +186,10 @@ export interface Connection {
*
* Azure Active Directory authentication for Azure Databricks workspaces using Service
* Principal.
*
* Common Database Connection Config
*
* Azure Database Connection Config
*/
export interface AuthenticationType {
/**
Expand Down Expand Up @@ -203,6 +219,52 @@ export interface AuthenticationType {
* Azure Active Directory Tenant ID where your Service Principal is registered.
*/
azureTenantId?: string;
/**
* Password to connect to source.
*/
password?: string;
/**
* JWT to connect to source.
*/
jwt?: string;
azureConfig?: AzureCredentials;
}

/**
* Azure Cloud Credentials
*/
export interface AzureCredentials {
/**
* Account Name of your storage account
*/
accountName?: string;
/**
* Your Service Principal App ID (Client ID)
*/
clientId?: string;
/**
* Your Service Principal Password (Client Secret)
*/
clientSecret?: string;
/**
* Scopes to get access token, for e.g. api://6dfX33ab-XXXX-49df-XXXX-3459eX817d3e/.default
*/
scopes?: string;
/**
* Tenant ID of your Azure Subscription
*/
tenantId?: string;
/**
* Key Vault Name
*/
vaultName?: string;
}

/**
* Database Authentication types not requiring config.
*/
export enum NoConfigAuthenticationTypes {
OAuth2 = "OAuth2",
}

/**
Expand Down Expand Up @@ -331,6 +393,7 @@ export enum Scheme {
Bigquery = "bigquery",
DatabricksConnector = "databricks+connector",
Snowflake = "snowflake",
Trino = "trino",
}

/**
Expand All @@ -342,6 +405,7 @@ export enum Type {
BigQuery = "BigQuery",
Databricks = "Databricks",
Snowflake = "Snowflake",
Trino = "Trino",
}

export enum EventType {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/*
* Copyright 2026 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Trino Connection Config
*/
export interface TrinoConnection {
/**
* Choose Auth Config Type.
*/
authType?: BasicAuth | NoConfigAuthenticationTypes;
/**
* Catalog of the data source.
*/
catalog?: string;
connectionArguments?: { [key: string]: any };
connectionOptions?: { [key: string]: string };
/**
* Database Schema of the data source.
*/
databaseSchema?: string;
/**
* Host and port of the Trino service.
*/
hostPort: string;
/**
* SQLAlchemy driver scheme options.
*/
scheme?: TrinoScheme;
/**
* Service Type
*/
type?: TrinoType;
/**
* Username to connect to Trino.
*/
username: string;
}

/**
* Common Database Connection Config
*
* Azure Database Connection Config
*/
export interface BasicAuth {
/**
* Password to connect to source.
*/
password?: string;
/**
* JWT to connect to source.
*/
jwt?: string;
azureConfig?: AzureCredentials;
}

/**
* Azure Cloud Credentials
*/
export interface AzureCredentials {
/**
* Account Name of your storage account
*/
accountName?: string;
/**
* Your Service Principal App ID (Client ID)
*/
clientId?: string;
/**
* Your Service Principal Password (Client Secret)
*/
clientSecret?: string;
/**
* Scopes to get access token, for e.g. api://6dfX33ab-XXXX-49df-XXXX-3459eX817d3e/.default
*/
scopes?: string;
/**
* Tenant ID of your Azure Subscription
*/
tenantId?: string;
/**
* Key Vault Name
*/
vaultName?: string;
}

/**
* Database Authentication types not requiring config.
*/
export enum NoConfigAuthenticationTypes {
OAuth2 = "OAuth2",
}

/**
* SQLAlchemy driver scheme options.
*/
export enum TrinoScheme {
Trino = "trino",
}

/**
* Service Type
*
* Service type.
*/
export enum TrinoType {
Trino = "Trino",
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface TestDefinition {
/**
* Description of the testcase.
*/
description: string;
description?: string;
/**
* Display Name that identifies this test case.
*/
Expand Down