Skip to content

Commit

Permalink
fix(ingest): bigquery - only register failure on exception (datahub-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
abelstam12 authored and cccs-tom committed Nov 18, 2022
1 parent dc9d07f commit 2ea0b43
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,6 @@ def _create_lineage_map(self, entries: Iterable[QueryEvent]) -> Dict[str, Set[st
referenced_objs = set(
map(lambda x: x.split(".")[-1], parser.get_tables())
)
self.report.num_lineage_entries_sql_parser_failure[e.project_id] = (
self.report.num_lineage_entries_sql_parser_failure.get(
e.project_id, 0
)
+ 1
)
except Exception as ex:
logger.debug(
f"Sql Parser failed on query: {e.query}. It won't cause any issue except table/view lineage can't be detected reliably. The error was {ex}."
Expand Down

0 comments on commit 2ea0b43

Please sign in to comment.