-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ingest): incremental lineage source helper #8941
feat(ingest): incremental lineage source helper #8941
Conversation
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
…emental-lineage-source-helper' into master+ing-358-incremental-lineage-source-helper
…emental-lineage-source-helper' into master+ing-358-incremental-lineage-source-helper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -366,3 +377,128 @@ def _prepend_platform_instance( | |||
return [BrowsePathEntryClass(id=urn, urn=urn)] + entries | |||
|
|||
return entries | |||
|
|||
|
|||
def auto_incremental_lineage( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is getting large - we should consider splitting it up in a follow up PR
def auto_incremental_lineage( | ||
graph: Optional[DataHubGraph], | ||
incremental_lineage: bool, | ||
include_column_level_lineage: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is kinda confusingly named - maybe we should call it "source_produces_column_lineage" or something
the other possibility is that we mix the two - if the UpstreamLineageClass has fineGrainedLineage, then we use read-modify-write, otherwise we do patch. we'd need to test that patch doesn't delete fineGrainedLineage if it was previously present
Anyways - not a blocker for this PR, but I do want to revisit this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the comments are addressed in #8976
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
Checklist