Skip to content

Commit

Permalink
rename helper
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Jan 2, 2025
1 parent f7dfa64 commit 8dcae9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metadata-ingestion/src/datahub/specific/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def add_fine_grained_upstream_lineage(
self._add_patch(
UpstreamLineage.ASPECT_NAME,
"add",
path=DatasetPatchBuilder.quote_fine_grained_path(
path=self._build_fine_grained_path(
transform_op, downstream_urn, query_id, upstream_urn
),
value={"confidenceScore": fine_grained_lineage.confidenceScore},
Expand All @@ -174,7 +174,7 @@ def get_fine_grained_key(
return transform_op, downstream_urn, query_id

@classmethod
def quote_fine_grained_path(
def _build_fine_grained_path(
cls, transform_op: str, downstream_urn: str, query_id: str, upstream_urn: str
) -> PatchPath:
return (
Expand All @@ -197,7 +197,7 @@ def remove_fine_grained_upstream_lineage(
self._add_patch(
UpstreamLineage.ASPECT_NAME,
"remove",
path=DatasetPatchBuilder.quote_fine_grained_path(
path=self._build_fine_grained_path(
transform_op, downstream_urn, query_id, upstream_urn
),
value={},
Expand Down

0 comments on commit 8dcae9b

Please sign in to comment.