mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-14 18:38:27 +00:00
fix(ingest/unity): add exception handling (#12639)
This commit is contained in:
parent
26e7743cfe
commit
71d1092b2e
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user