Skip to content
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

Conversation

mayurinehate
Copy link
Collaborator

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Oct 4, 2023
mayurinehate and others added 2 commits October 6, 2023 20:27
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
Copy link
Collaborator

@hsheth2 hsheth2 left a 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(
Copy link
Collaborator

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,
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@hsheth2 hsheth2 merged commit 8d175ef into datahub-project:master Oct 9, 2023
54 checks passed
asikowitz pushed a commit to asikowitz/datahub that referenced this pull request Oct 10, 2023
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
@maggiehays maggiehays added the hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants