mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-17 21:20:32 +00:00
fix(ingest): change LookMLSource._get_upsteam_lineage() to _get_upstream_lineage() (#2888)
This commit is contained in:
parent
e075a0a004
commit
caaf7107b8
@ -398,7 +398,7 @@ class LookMLSource(Source):
|
|||||||
f"Could not find a platform for looker view with connection: {connection}"
|
f"Could not find a platform for looker view with connection: {connection}"
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_upsteam_lineage(self, looker_view: LookerView) -> UpstreamLineage:
|
def _get_upstream_lineage(self, looker_view: LookerView) -> UpstreamLineage:
|
||||||
upstreams = []
|
upstreams = []
|
||||||
for sql_table_name in looker_view.sql_table_names:
|
for sql_table_name in looker_view.sql_table_names:
|
||||||
upstream = UpstreamClass(
|
upstream = UpstreamClass(
|
||||||
@ -499,7 +499,7 @@ class LookMLSource(Source):
|
|||||||
aspects=[], # we append to this list later on
|
aspects=[], # we append to this list later on
|
||||||
)
|
)
|
||||||
dataset_snapshot.aspects.append(Status(removed=False))
|
dataset_snapshot.aspects.append(Status(removed=False))
|
||||||
dataset_snapshot.aspects.append(self._get_upsteam_lineage(looker_view))
|
dataset_snapshot.aspects.append(self._get_upstream_lineage(looker_view))
|
||||||
dataset_snapshot.aspects.append(self._get_schema(looker_view))
|
dataset_snapshot.aspects.append(self._get_schema(looker_view))
|
||||||
|
|
||||||
mce = MetadataChangeEvent(proposedSnapshot=dataset_snapshot)
|
mce = MetadataChangeEvent(proposedSnapshot=dataset_snapshot)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user