Area: UI
Sub-Area: Lineage Display
Applies to: OSS + Cloud
Issue
Lineage was ingested, but the lineage graph is empty or missing edges in the DataHub UI for some users or assets.
You Might Be Asking
- How do I check that lineage was ingested?
- Why does the Lineage tab show nothing for one user but not another?
- Can the time filter hide my lineage?
Cause
Common causes:
- The time filter hides edges. The filter does not show historical lineage. It hides edges in the latest version of the lineage that were last updated outside the selected window. An edge passes the filter if its created time or updated time falls inside the window. Edges with no timestamps and manually created edges always show.
- A default time window is set (DataHub Cloud only). In OSS the filter always defaults to All Time. On DataHub Cloud it also defaults to All Time unless an instance default window is set. Your own choice of time range overrides the default. The choice is saved in the page URL, and picking All Time turns the default off. The default applies again when you open the lineage view without a time range in the URL.
- The user cannot view the entity (DataHub Cloud). If a user cannot view the entity whose lineage is requested, the lineage result is empty. When view authorization is enabled, neighbors the user cannot view appear as Restricted entities instead of the full entity.
Solution
-
Verify lineage was ingested. Run this GraphQL query. Use
DOWNSTREAMto check the other side.
curl -X POST '<graphql-endpoint>' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"query": "{ dataset(urn: \"<urn>\") { lineage(input: { direction: UPSTREAM, start: 0, count: 100 }) { total relationships { entity { urn type } } } } }"
}'
This query returns one hop. To include entities that do not exist or are soft deleted, add includeGhostEntities: true to the input. On DataHub Cloud, the endpoint is https://<your-account>.acryl.io/api/graphql. In self-hosted OSS, send the query to https://<your-datahub-host>/api/graphql. Send the token as Authorization: Bearer <token>. See GraphQL getting started and personal access tokens.
-
Check the time filter. On the Lineage tab, open the Time Range control in the lineage view settings. Choose All Time (no start or end date), or click View All-Time Lineage if the graph prompts you. You can also pick Last 7 days, Last 14 days, Last 28 days or your own dates. On DataHub Cloud, to change the instance default window, contact DataHub Support. See viewing lineage.
-
Check the user's access (DataHub Cloud). Compare what the affected user sees with what a user who can view the entity sees. If the user cannot view the entity, the lineage is empty. If the user cannot view a neighbor, it shows as a Restricted entity.
-
Refresh the UI.
- Hard refresh the page (Ctrl+Shift+R).
- Try a private browsing window.
- Try a different browser.
- Check the browser console for JavaScript errors.
-
If the problem continues. Send DataHub Support the dataset URNs and the output of the query in step 1.