Skip to content

Commit

Permalink
fix(ingest/teradata): Teradata speed up changes (#9059)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Sikowitz <[email protected]>
  • Loading branch information
treff7es and asikowitz authored Nov 24, 2023
1 parent 1c5871c commit 5ccb30e
Show file tree
Hide file tree
Showing 2 changed files with 688 additions and 30 deletions.
3 changes: 3 additions & 0 deletions metadata-ingestion/src/datahub/emitter/sql_parsing_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ def _gen_lineage_mcps(self) -> Iterable[MetadataChangeProposalWrapper]:
upstreams.append(edge.gen_upstream_aspect())
fine_upstreams.extend(edge.gen_fine_grained_lineage_aspects())

if not upstreams:
continue

upstream_lineage = UpstreamLineageClass(
upstreams=sorted(upstreams, key=lambda x: x.dataset),
fineGrainedLineages=sorted(
Expand Down
Loading

0 comments on commit 5ccb30e

Please sign in to comment.