Area: Product Issues
Sub-Area: Lineage Display
Applies to: OSS + Cloud
Issue
You expect upstream or downstream lineage in the DataHub UI, but it does not appear, even though you know the data relationship exists.
You Might Be Asking
- Why don't I see upstream tables for my dataset even though I know they exist?
- What does the time range filter in the lineage view do?
- How do I check whether lineage was ingested?
Cause
Common causes:
- The lineage time filter hides edges outside the selected window.
- Lineage was never ingested for the entity, or the ingestion recipe doesn't extract it.
- The lineage edge points at a URN that doesn't match the URN of the entity you ingested.
- On DataHub Cloud, you can't view the entity or its neighbors.
Solution
-
Check the time range filter
The lineage time filter is under the view settings of the lineage graph. By default it shows All Time. On DataHub Cloud, an admin default window (a number of days) can exist. If one is set, the graph starts with that window. To change that default, contact DataHub Support.
- Open the Time Range control on the Lineage tab and pick Last 7 days, Last 14 days, Last 28 days, All Time, or your own start and end dates.
- On DataHub Cloud, your choice overrides any default window. The choice is saved in the page URL. All Time turns the default off. The default applies again when you open the lineage view without a time range in the URL.
- If the graph is empty, click "View All-Time Lineage".
- The filter does not show historical lineage. It always shows the latest version of the lineage and hides edges that were last updated outside the window.
- An edge stays visible if its created time or its updated time falls inside the window. Edges with no timestamps and manually added edges always show, whatever the window.
-
Check that the Lineage tab has lineage
If the Lineage tab is greyed out, no lineage has been ingested for that entity. Search for both the upstream and downstream tables and note their exact URNs.
-
Review the ingestion configuration
-
include_table_lineagedefaults to true on the Snowflake, BigQuery and Redshift sources. Make sure your recipe doesn't set it to false. - Snowflake also has
include_column_lineage(default true). Snowflake lineage needs the right grants and Snowflake Enterprise Edition or above. - The dbt source normally builds table lineage from dbt's metadata. Don't add
emit_upstream_lineageto a dbt recipe. DataHub recipes reject keys a source doesn't define, so the recipe fails validation. The dbt lineage options areinclude_column_lineage(default true, requiresinfer_dbt_schemas),skip_sources_in_lineage(default false, experimental),prefer_sql_parser_lineage(default false, requiresskip_sources_in_lineage) andconvert_urns_to_lowercase(default true). See the dbt source docs.
-
-
Check that the edge URN matches the ingested entity
Lineage joins on the exact URN. If an edge points at a URN that no source ingested, the edge ends at a ghost (non-existent) entity that never merges with the real one.
- Databricks Unity Catalog federated sources are an example. The upstream edge resolves only if the external source is also ingested with its own recipe, using the same
platform_instanceandconvert_urns_to_lowercasethat you set infederation_connection_details. See the Databricks source docs. - Setting a platform instance changes the name part of the dataset URN to
<instance.name>. See platform instances. - The Snowflake and dbt sources lowercase dataset URNs by default (
convert_urns_to_lowercaseis true). For case-sensitive platforms such as BigQuery, the dbt option description suggests setting it to false to keep the original casing. - To see the URN an edge actually points at, run the GraphQL query in the next step with
includeGhostEntities: true.
- Databricks Unity Catalog federated sources are an example. The upstream edge resolves only if the external source is also ingested with its own recipe, using the same
-
Check lineage through the GraphQL API
Send a query to your GraphQL endpoint. On DataHub Cloud it is
https://<your-account>.acryl.io/api/graphql. Send your token in the headerAuthorization: Bearer <token>. See GraphQL getting started for DataHub Cloud and personal access tokens.{ dataset(urn: "<urn>") { lineage(input: { direction: UPSTREAM, start: 0, count: 100 }) { total relationships { entity { urn type } } } } }Use
DOWNSTREAMto check the other side. AddincludeGhostEntities: trueto the input to include entities that don't exist or are soft deleted. Iftotalis greater than 0, lineage is ingested. This query returns one hop.To read the raw
upstreamLineageaspect instead, use the Rest.li call<gms>/aspects/<url-encoded-urn>?aspect=upstreamLineage&version=0. On DataHub Cloud the GMS URL ishttps://<your-company>.acryl.io/gms. See the Rest.li overview. -
Check access on DataHub Cloud
On DataHub Cloud, if you can't view the entity, its lineage is empty. If view authorization is enabled, neighbors you can't view appear as Restricted entities instead of the full entity. If lineage is still missing, send DataHub Support the dataset URNs.
Related Documentation
- Lineage feature guide
- Lineage API tutorial
- Rest.li API overview
- dbt source
- Databricks source
- Platform instances
- GraphQL getting started for DataHub Cloud
Tags: lineage, missing-upstream, time-filter, cross-platform, ingestion, metadata, troubleshooting, api