Skip to content

Commit

Permalink
Fixing db container id
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es committed Aug 22, 2023
1 parent 6559148 commit f003e99
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions metadata-ingestion/src/datahub/ingestion/source/sql/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,12 @@ def gen_schema_containers(
database: str,
extra_properties: Optional[Dict[str, Any]] = None,
) -> Iterable[MetadataWorkUnit]:
database_container_key = gen_database_key(
database,
platform=self.platform,
platform_instance=self.config.platform_instance,
env=self.config.env,
database_container_key = self.get_database_container_key(
db_name=database, schema=schema
)

yield from gen_database_container(
database=database,
database=database_container_key.database,
database_container_key=database_container_key,
sub_types=[DatasetContainerSubTypes.DATABASE],
domain_registry=self.domain_registry,
Expand Down

0 comments on commit f003e99

Please sign in to comment.