mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +00:00
Updates generated interfaces from schema (#1676)
This commit is contained in:
parent
3831bb9e4d
commit
b5aabdc535
@ -103,14 +103,7 @@ export interface ConnectorConfig {
|
||||
/**
|
||||
* Regex exclude tables or databases that matches the pattern.
|
||||
*/
|
||||
excludeFilterPattern?:
|
||||
| string[]
|
||||
| boolean
|
||||
| number
|
||||
| number
|
||||
| { [key: string]: any }
|
||||
| null
|
||||
| string;
|
||||
excludeFilterPattern?: string[];
|
||||
/**
|
||||
* Host and port of the data source.
|
||||
*/
|
||||
@ -143,6 +136,7 @@ export enum IngestionType {
|
||||
Mssql = 'mssql',
|
||||
Mysql = 'mysql',
|
||||
Postgres = 'postgres',
|
||||
Presto = 'presto',
|
||||
Redshift = 'redshift',
|
||||
RedshiftUsage = 'redshift-usage',
|
||||
Snowflake = 'snowflake',
|
||||
|
@ -19,7 +19,7 @@ export interface CreatePolicy {
|
||||
/**
|
||||
* A short description of the Policy, comprehensible to regular users.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Title for this Policy.
|
||||
*/
|
||||
@ -31,7 +31,7 @@ export interface CreatePolicy {
|
||||
/**
|
||||
* Owner of this Policy.
|
||||
*/
|
||||
owner: EntityReference;
|
||||
owner?: EntityReference;
|
||||
policyType: PolicyType;
|
||||
/**
|
||||
* Link to a well documented definition of this Policy.
|
||||
|
@ -30,6 +30,11 @@ export interface Table {
|
||||
* Reference to Database that contains this table.
|
||||
*/
|
||||
database?: EntityReference;
|
||||
/**
|
||||
* This captures information about how the table is modeled. Currently only DBT model is
|
||||
* supported.
|
||||
*/
|
||||
dataModel?: DataModel;
|
||||
/**
|
||||
* Description of a table.
|
||||
*/
|
||||
@ -322,6 +327,46 @@ export enum State {
|
||||
Suggested = 'Suggested',
|
||||
}
|
||||
|
||||
/**
|
||||
* This captures information about how the table is modeled. Currently only DBT model is
|
||||
* supported.
|
||||
*/
|
||||
export interface DataModel {
|
||||
/**
|
||||
* Columns from the schema defined during modeling. In case of DBT, the metadata here comes
|
||||
* from `schema.yaml`.
|
||||
*/
|
||||
columns?: Column[];
|
||||
/**
|
||||
* Description of the Table from the model
|
||||
*/
|
||||
description?: string;
|
||||
generatedAt?: Date;
|
||||
modelType: ModelType;
|
||||
/**
|
||||
* Path to sql definition file.
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
* This corresponds to rws SQL from `<model_name>.sql` in DBT. This might be null when SQL
|
||||
* query need not be compiled as done in DBT.
|
||||
*/
|
||||
rawSql?: string;
|
||||
/**
|
||||
* This corresponds to compile SQL from `<model_name>.sql` in DBT. In cases where
|
||||
* compilation is not necessary, this corresponds to SQL that created the table.
|
||||
*/
|
||||
sql: string;
|
||||
/**
|
||||
* Fully qualified name of Models/tables used for in `sql` for creating this table
|
||||
*/
|
||||
upstream?: string[];
|
||||
}
|
||||
|
||||
export enum ModelType {
|
||||
Dbt = 'DBT',
|
||||
}
|
||||
|
||||
/**
|
||||
* Reference to Database that contains this table.
|
||||
*
|
||||
|
@ -52,7 +52,7 @@ export interface Policy {
|
||||
/**
|
||||
* Owner of this Policy.
|
||||
*/
|
||||
owner: PolicyOwner;
|
||||
owner?: PolicyOwner;
|
||||
policyType: PolicyType;
|
||||
/**
|
||||
* Link to a well documented definition of this Policy.
|
||||
|
@ -180,14 +180,7 @@ export interface ConnectorConfig {
|
||||
/**
|
||||
* Regex exclude tables or databases that matches the pattern.
|
||||
*/
|
||||
excludeFilterPattern?:
|
||||
| string[]
|
||||
| boolean
|
||||
| number
|
||||
| number
|
||||
| { [key: string]: any }
|
||||
| null
|
||||
| string;
|
||||
excludeFilterPattern?: string[];
|
||||
/**
|
||||
* Host and port of the data source.
|
||||
*/
|
||||
@ -238,6 +231,7 @@ export enum IngestionType {
|
||||
Mssql = 'mssql',
|
||||
Mysql = 'mysql',
|
||||
Postgres = 'postgres',
|
||||
Presto = 'presto',
|
||||
Redshift = 'redshift',
|
||||
RedshiftUsage = 'redshift-usage',
|
||||
Snowflake = 'snowflake',
|
||||
|
Loading…
x
Reference in New Issue
Block a user