-
Notifications
You must be signed in to change notification settings - Fork 3k
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
docs: improve lineage docs #10396
docs: improve lineage docs #10396
Conversation
""" | ||
result = graph.execute_graphql(query=query) | ||
urn = "urn:li:dataset:(urn:li:dataPlatform:hive,logging_events,PROD)" | ||
result = graph.get_aspect(entity_urn=urn, aspect_type=UpstreamLineageClass) |
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.
@hsheth2 let me know if this is the right aspect that we can use for reading lineage information
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.
The aspects vary by entity type, so might make sense to have a few examples
dataset -> upstreamlineage
datajob -> datajobinputoutputs
etc
You can find the mapping on our entity type docs https://datahubproject.io/docs/generated/metamodel/entities/datajob/#relationships
metadata-ingestion/examples/library/read_lineage_execute_graphql.py
Outdated
Show resolved
Hide resolved
""" | ||
result = graph.execute_graphql(query=query) | ||
urn = "urn:li:dataset:(urn:li:dataPlatform:hive,logging_events,PROD)" | ||
result = graph.get_aspect(entity_urn=urn, aspect_type=UpstreamLineageClass) |
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.
The aspects vary by entity type, so might make sense to have a few examples
dataset -> upstreamlineage
datajob -> datajobinputoutputs
etc
You can find the mapping on our entity type docs https://datahubproject.io/docs/generated/metamodel/entities/datajob/#relationships
Checklist