fix(ingest/unity): add exception handling (#12639)

This commit is contained in:
Aseem Bansal 2025-02-17 15:46:30 +05:30 committed by GitHub
parent 26e7743cfe
commit 71d1092b2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -464,7 +464,17 @@ class UnityCatalogSource(StatefulIngestionSourceBase, TestableSource):
with self.report.new_stage(f"Ingest schema {schema.id}"):
yield from self.gen_schema_containers(schema)
yield from self.process_tables(schema)
try:
yield from self.process_tables(schema)
except Exception as e:
logger.exception(f"Error parsing schema {schema}")
self.report.report_warning(
message="Missed schema because of parsing issues",
context=str(schema),
title="Error parsing schema",
exc=e,
)
continue
self.report.schemas.processed(schema.id)