diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/operations/workflows/createIngestion.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/operations/workflows/createIngestion.ts index 477c58723e3..760b1cda1df 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/operations/workflows/createIngestion.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/operations/workflows/createIngestion.ts @@ -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', diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts index f75c08b7081..9b8f54f37cd 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts @@ -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. diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts index 43f449d294f..913367b6df8 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts @@ -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 `.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 `.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. * diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts index b897dc76ac2..c3f393b8424 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts @@ -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. diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/operations/workflows/ingestion.ts b/openmetadata-ui/src/main/resources/ui/src/generated/operations/workflows/ingestion.ts index bc51e527492..36e99b5871c 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/operations/workflows/ingestion.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/operations/workflows/ingestion.ts @@ -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',