Skip to main content

Databricks Unity Catalog - Automatic data lineage

What to expect​

Within Databricks​

Dataedo reads lineage captured by Databricks from the lineage system tables: system.access.table_lineage for table-level lineage and system.access.column_lineage for column-level lineage. The system tables keep lineage for up to one year, so Dataedo imports lineage from that period. Column-level lineage will be created for various kinds of tables and views that exist in Databricks Unity Catalog. If many catalogs are documented in Dataedo, lineage between them will also be imported. Lineage appearance will change depending on whether the object is created using Delta Live Table (DLT) pipeline or not:

Delta Live Tables lineage​

On the lineage graph, the user can see the DLT pipeline object responsible for creating objects and loading data.

Image title

It is also possible to hide pipelines and view lineage directly between objects:

Image title

Other objects lineage​

If an object is created without a DLT pipeline, for example by running a notebook with Python code, executing CREATE.. AS SELECT.. or CREATE VIEW.. SQL statements, lineage will always be shown directly between objects:

Image title

Tables that read from themselves​

If a table is modified with a statement that reads from the same table, for example MERGE or UPDATE, Databricks records the table with a self-referencing process: the table is both the source and the target.

Between Databricks and external sources​

External Locations​

Dataedo creates lineage based on location URI when the data source of the table is located in one of the following cloud storages:

  • Google Cloud
  • Amazon S3
  • Azure
  • Cloudflare
Image title

Fivetran Data Sources​

If you connect to some data source (for example Salesforce) using a Fivetran connection, you can utilize Dataedo Fivetran connector to create column-level lineage between this source and Databricks. On the diagram, you can see the Fivetran ETL program that processes data, which can be hidden as in the case of DLT pipelines to show lineage between objects directly:

Image title

Known Limitations​

  • Column-level lineage for external tables will be created only if the data source (for example JSON file) schema is automatically discovered by Databricks and column names are not changed.
  • For Delta Live Tables (DLT), Dataedo will use data lineage only for the latest update and ignore any older updates.
  • Databricks system tables keep lineage for up to one year. Lineage older than that is not imported.

Because Dataedo uses lineage captured by Databricks, unless otherwise specified in the documentation, the following limitations regarding data lineage must be taken into account: Databricks lineage limitations

Troubleshooting​

info

If the lineage step fails or the import is cancelled during it, Dataedo skips lineage synchronization, and keeps the previous state.

I don't see data lineage​

  1. Check if the object that does not have lineage has it in Databricks. If not, lineage won't be created in Dataedo.
  2. Make sure the identity used by the connection has USE SCHEMA on the system.access schema and SELECT on the system.access.table_lineage table. Without it, objects are imported, but the lineage step ends with an error that names the table and lineage is not imported.
  3. Check if the lineage is older than one year. Databricks system tables don't keep older lineage.
  4. Rerun the import of the source - maybe the schema was imported in an older version or the configuration was incorrect.

I see table-level lineage, but no column-level lineage​

  1. Make sure the identity used by the connection has SELECT on the system.access.column_lineage table. Without it, table-level lineage is imported, column-level lineage is skipped with a warning, and column-level lineage already in Dataedo is kept.

The import log shows RESOURCE_EXHAUSTED or Rate limit exceeded while getting lineage​

Dataedo versions before 26.4 read table-level lineage from the Databricks lineage API, one request per table. Databricks limits this API to 300 requests per hour and 1,200 per day for the whole account, so importing a catalog with more than 300 tables could use up the limit and import only part of the lineage. Upgrade to Dataedo 26.4 or later, which reads lineage from system tables and doesn't use this API, and grant SELECT on system.access.table_lineage.

I don't see data lineage from External location storage​

  1. Check if the object that does not have lineage has it in Databricks. If not, lineage won't be created in Dataedo.
  2. Make sure the object has Linked Source set, with correctly assigned storage.
Image title
  1. If you don't see Linked Source, check if you have permissions to the appropriate Databricks External Location. If external locations can't be listed, the import still completes and a warning is written to the import log.
  2. Rerun the import of the source - maybe the schema was imported in an older version or the configuration was incorrect.

I don't see data lineage between objects from different catalogs​

  1. Check if the object that does not have lineage has it in Databricks. If not, lineage won't be created in Dataedo.
  2. Make sure that you have both catalogs imported.
  3. Rerun the import of the catalog with outflow objects (those to which data should flow).

Data lineage is inaccurate​

  1. Make sure that there are recent updates available for pipelines.
Dataedo is an end-to-end data governance solution for mid-sized organizations.
Data Lineage • Data Quality • Data Catalog