mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-03 22:23:16 +00:00
parent
d71c75aaa1
commit
df6232ef52
@ -5,9 +5,9 @@
|
|||||||
"username": "openmetadata_user",
|
"username": "openmetadata_user",
|
||||||
"password": "openmetadata_password",
|
"password": "openmetadata_password",
|
||||||
"database": "openmetadata_db",
|
"database": "openmetadata_db",
|
||||||
"service_name": "local_mysql",
|
"service_name": "local_mariadb",
|
||||||
"filter_pattern": {
|
"schema_filter_pattern": {
|
||||||
"excludes": ["mysql.*", "information_schema.*", "performance_schema.*", "sys.*"]
|
"excludes": ["information_schema.*", "performance_schema.*", "sys.*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
"database": "warehouse",
|
"database": "warehouse",
|
||||||
"service_name": "aws_redshift",
|
"service_name": "aws_redshift",
|
||||||
"generate_sample_data": "false",
|
"generate_sample_data": "false",
|
||||||
"filter_pattern": {
|
"schema_filter_pattern": {
|
||||||
"excludes": ["information_schema.*", "[\\w]*event_vw.*"]
|
"excludes": ["information_schema.*"]
|
||||||
},
|
},
|
||||||
"dbt_manifest_file": "./examples/sample_data/dbt/manifest.json",
|
"dbt_manifest_file": "./examples/sample_data/dbt/manifest.json",
|
||||||
"dbt_catalog_file": "./examples/sample_data/dbt/catalog.json"
|
"dbt_catalog_file": "./examples/sample_data/dbt/catalog.json"
|
||||||
|
@ -145,11 +145,14 @@ class MetadataRestSink(Sink[Entity]):
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
db = self.metadata.create_or_update(db_request)
|
db = self.metadata.create_or_update(db_request)
|
||||||
|
if db_and_table.table.description is not None:
|
||||||
|
db_and_table.table.description = db_and_table.table.description.strip()
|
||||||
|
|
||||||
table_request = CreateTableEntityRequest(
|
table_request = CreateTableEntityRequest(
|
||||||
name=db_and_table.table.name,
|
name=db_and_table.table.name,
|
||||||
tableType=db_and_table.table.tableType,
|
tableType=db_and_table.table.tableType,
|
||||||
columns=db_and_table.table.columns,
|
columns=db_and_table.table.columns,
|
||||||
description=db_and_table.table.description.strip(),
|
description=db_and_table.table.description,
|
||||||
database=db.id,
|
database=db.id,
|
||||||
)
|
)
|
||||||
if db_and_table.table.viewDefinition:
|
if db_and_table.table.viewDefinition:
|
||||||
@ -159,9 +162,13 @@ class MetadataRestSink(Sink[Entity]):
|
|||||||
|
|
||||||
created_table = self.metadata.create_or_update(table_request)
|
created_table = self.metadata.create_or_update(table_request)
|
||||||
if db_and_table.location is not None:
|
if db_and_table.location is not None:
|
||||||
|
if db_and_table.location.description is not None:
|
||||||
|
db_and_table.location.description = (
|
||||||
|
db_and_table.location.description.strip()
|
||||||
|
)
|
||||||
location_request = CreateLocationEntityRequest(
|
location_request = CreateLocationEntityRequest(
|
||||||
name=db_and_table.location.name,
|
name=db_and_table.location.name,
|
||||||
description=db_and_table.location.description.strip(),
|
description=db_and_table.location.description,
|
||||||
locationType=db_and_table.location.locationType,
|
locationType=db_and_table.location.locationType,
|
||||||
owner=db_and_table.location.owner,
|
owner=db_and_table.location.owner,
|
||||||
service=EntityReference(
|
service=EntityReference(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user