Skip to content

Commit

Permalink
fix(ingest/glue): add info in report
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Jan 27, 2025
1 parent 3e9e6e4 commit 6bcc446
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata-ingestion/src/datahub/ingestion/source/aws/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def platform_validator(cls, v: str) -> str:

@dataclass
class GlueSourceReport(StaleEntityRemovalSourceReport):
catalog_id: Optional[str] = None
tables_scanned = 0
filtered: List[str] = dataclass_field(default_factory=list)
databases: EntityFilterReport = EntityFilterReport.field(type="database")
Expand Down Expand Up @@ -686,6 +687,7 @@ def get_all_databases(self) -> Iterable[Mapping[str, Any]]:
# see https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/glue/paginator/GetDatabases.html
paginator = self.glue_client.get_paginator("get_databases")

self.report.catalog_id = self.source_config.catalog_id
if self.source_config.catalog_id:
paginator_response = paginator.paginate(
CatalogId=self.source_config.catalog_id
Expand Down

0 comments on commit 6bcc446

Please sign in to comment.