Area: Ingestion Issues
Sub-Area: Cross-Platform Lineage / URN Mismatch
Applies to: OSS + Cloud
Issue
You run a Fivetran ingestion and a Databricks ingestion. Both runs succeed. The lineage from Fivetran into your Databricks tables does not appear on the Databricks datasets.
The Fivetran source builds its own URN for each Databricks destination table. DataHub joins lineage by exact URN. If the URN Fivetran builds differs from the URN the Databricks source emits in platform instance, env, catalog name, or catalog casing, the Fivetran lineage points at a dataset that the Databricks source never created. This often starts right after you add platform_instance to the Databricks recipe.
You Might Be Asking
- Why did my Fivetran to Databricks lineage disappear after I added a
platform_instanceto my Databricks recipe? - Both ingestions ran successfully. Why is there no lineage in the UI?
- Which ingestions do I re-run after I change
platform_instance? - Why do my Databricks tables show up as separate entities from the ones Fivetran references?
Cause
The Fivetran source builds each destination URN as:
urn:li:dataset:(urn:li:dataPlatform:databricks,[<platform_instance>.]<catalog>.<schema>.<table>,<env>)
It takes platform_instance, env, and database (the catalog) from the destination_to_platform_instance entry for that Fivetran destination. The Databricks source builds its URN from its own platform_instance, env, and the catalog name returned by Unity Catalog. Four differences break the match.
Cause 1: Platform instance set in one recipe but not the other
When you add platform_instance to the Databricks recipe, the Databricks source emits URNs with that prefix:
urn:li:dataset:(urn:li:dataPlatform:databricks,<platform_instance>.catalog.schema.table,PROD)
The Fivetran source adds the prefix only from destination_to_platform_instance.<destination-id>.platform_instance. The top-level platform_instance in the Fivetran recipe applies to the Fivetran pipelines and jobs, not to the destination dataset URNs. Fivetran API discovery fills in the platform and catalog, but never the platform instance.
Cause 2: Wrong catalog when the recipe has no api_config
Without api_config, the Fivetran source can't look up the destination's catalog. It uses the catalog in fivetran_log_config.databricks_destination_config.catalog, which is the catalog that holds the Fivetran log tables. If Fivetran writes your data to a different catalog, the lineage points at tables in the log catalog. The edges are still emitted, so num_lineage_edges_skipped stays at 0.
Cause 3: Catalog casing
database_lowercase in destination_to_platform_instance defaults to true, so the Fivetran source lowercases the catalog segment. The Databricks source keeps the catalog name as Unity Catalog returns it. If the Databricks URN has uppercase letters in the catalog segment, the two URNs differ.
Cause 4: No platform for the destination
When you run with only api_config (rest_api mode) and API discovery fails for a destination, the source has no platform for it. It then skips that destination's lineage edges, counts them in num_lineage_edges_skipped, and reports the warning Destination URN could not be constructed. The warning Destination discovery failed appears first in the same report.
Solution
Make the Fivetran destination entry match the Databricks recipe, then re-run both ingestions.
-
Find the Fivetran destination ID. In Fivetran, go to Destinations, then Overview, then Destination Group ID. It is a two-word ID such as
canyon_tolerable, not the catalog name. -
Add an entry for that ID under
destination_to_platform_instancein the Fivetran recipe. Use the sameplatform_instanceandenvas the Databricks recipe, and setdatabaseto the catalog Fivetran writes to. Setplatformtodatabricksif you saw theDestination URN could not be constructedwarning. See the Fivetran source docs for all fields.
# Fivetran recipe
source:
type: fivetran
config:
# ... fivetran_log_config and/or api_config ...
destination_to_platform_instance:
<fivetran-destination-id>:
platform: databricks
platform_instance: <your-platform-instance>
env: PROD
database: <your-catalog-name>
# Databricks recipe
source:
type: databricks
config:
# ... other config ...
platform_instance: <your-platform-instance>
env: PROD
-
If the catalog segment in the Databricks URN has uppercase letters, add
database_lowercase: falseto the same entry and writedatabaseexactly as it appears in that URN. -
Instead of setting
databaseby hand, you can add Fivetran API credentials so the source looks up the destination catalog. The keys areapi_keyandapi_secret. A value you set indestination_to_platform_instancestill wins over the looked-up value.
source:
type: fivetran
config:
fivetran_log_config:
# ... log config ...
api_config:
api_key: "<your-fivetran-api-key>"
api_secret: "<your-fivetran-api-secret>"
- Re-run the Databricks ingestion so it emits datasets under the URNs you expect. Then re-run the Fivetran ingestion. The Fivetran source writes lineage only when it runs, so a recipe change takes effect only after a Fivetran run. Each Fivetran job keeps the same URN across runs, and the new run replaces its output with the corrected destination URN.
Check the result
- Open the latest Fivetran ingestion run report. Look for
num_lineage_edges_skippedand for the warningsDestination URN could not be constructedorDestination discovery failed. - Open a Fivetran job in DataHub and copy its output dataset URN. Open the same table from the Databricks ingestion and copy its URN. The platform instance, catalog, catalog casing, and env must match exactly.
- If the Databricks recipe sets
include_metastore: true, the Databricks URNs use the workspace name as the platform instance and add the metastore name before the catalog. Match those segments in the Fivetran entry, or leaveinclude_metastoreat its defaultfalse.