Cross-database lineage in OpenMetadata

Cross-database lineage in OpenMetadata links tables that sit in different ingested services, but only when service names, naming and permissions line up. This page explains how to set it up and keep it working.

On this page

How cross-database lineage in OpenMetadata works and when you need it

Cross-database lineage in OpenMetadata is needed when data moves between warehouses, databases or projects that you have ingested as separate database services, and you want the catalog to show one connected path from source to report. OpenMetadata stores lineage as edges between entities, and an edge can only be drawn when both ends are present in the catalog and the pipeline or query that links them can be matched to those entities. When a table in one service feeds a table in another, the hard part is not drawing the edge but resolving the reference correctly, because the name in the query or pipeline must map to the exact entity OpenMetadata created during ingestion.

OpenMetadata supports table, column, dashboard, pipeline and metric lineage, and it accepts lineage events through its OpenLineage integration. Query-based lineage is derived from the SQL that connectors read, and pipeline lineage comes from orchestrators and their task definitions. Cross-service edges are the harder case because a parser or event sees a fully qualified or partially qualified name, and it has to resolve that name to an entity under a different service. Where a warehouse, a database and a BI tool each have their own service name, a mismatch in naming or a missing ingestion run leaves the edge unresolved and the lineage graph looks incomplete without any error in the UI. The resolution rules depend on the connector and the version you run, so confirm them in the OpenMetadata documentation for your release before you assume a cross-service edge will appear.

Before you plan the work, inventory every cross-service flow that matters for your owners and impact analysis, then check which services each flow touches and whether each service is ingested with a consistent name. Run a small test with one known cross-service query or pipeline and confirm the edge appears in the graph. If it does not, the fix is usually in service naming, database scope or the account's read permissions, which the sibling topics on connectors and view lineage cover in more detail. Agree with your data platform owners who maintains each service name, since a rename later can break edges that were resolved earlier.

Configuration options and when each fits

This table compares three ways to model a multi-database estate in OpenMetadata: one shared service, one service per database with cross-service resolution, and manual lineage edges. Read each row as a decision: what forces the choice, what naming and permissions it depends on, and what it costs to maintain over time. Confirm exact setting names in the current OpenMetadata documentation before you change anything.

ApproachWhen it fitsWhat it requires from naming and permissionsMaintenance trade-off
Single service with shared namingDatabases share one platform account or one warehouse and teams want one ingestion schedule and one catalog hierarchyDatabase and schema names must be unique across the service, and one service account must read every database in scopeLowest ingestion setup, but one failed run or one overly broad credential affects every database at once
One service per database with cross-service resolutionDatabases sit on different hosts, belong to different owners, or need different credentials and ingestion schedulesEach service needs a stable, documented service name, and lineage queries must reference the same fully qualified table names across servicesMore services to schedule and credential, and every rename of a service can break cross-service edges
Manual lineage edges for sources the connectors cannot seeA system outside the connectors, such as a job, export script or external tool, feeds a table in a catalog-managed databaseBoth endpoints must exist as catalog assets with exact fully qualified names, and the owner of each edge must be recordedEdges do not refresh on their own, so each manual edge needs a review trigger when either end changes
Least-privilege service account per serviceAny setup where ingestion reads more than one database or project and security review expects scoped accessRead-only grants limited to the databases, schemas and views each connector must parse, confirmed against the connector's documented permissionsGrants drift as schemas are added, so access reviews must cover the ingestion account as well as human users
Hybrid: shared naming for core warehouse, manual edges for the restMost of the estate sits in one warehouse, with a few external feeders that matter for impact analysisConsistent naming inside the warehouse service plus a documented list of external assets and their ownersTwo patterns to maintain, so the team must record which edges are automated and which are hand-maintained

Setting service names and running cross-database ingestion

This sequence gives each source database a stable service name, a read-only ingestion account and a verified ingestion run, so that lineage edges can cross from one database or project to another. The output is a catalog where a single table has one fully qualified name and lineage connects it to tables in other services.

  1. Inventory databases and projects in scope

    List every database, warehouse project, schema and pipeline that feeds or consumes the tables you want to connect, and note the platform, host or project identifier for each. The data platform owner or the team that runs each source should confirm the list, since lineage gaps often come from a source nobody listed. The step is done when every table in the target lineage path maps to one listed source.

  2. Decide and document service names

    Choose one OpenMetadata database service name per source and record it in a shared naming sheet with its platform, environment and owning team. Use names that stay stable over time, because service names become part of every fully qualified name and changing one later means re-ingesting and re-linking. The step is done when the sheet is reviewed by the data platform team and no two sources share a name.

  3. Create a least-privilege ingestion account per source

    For each source, create a dedicated read account used only by OpenMetadata ingestion, with metadata and query-history read access and no write or administrative rights. The database administrator for each platform should create and review the account, and the connector documentation lists the permissions each source needs. Store the credentials in your approved secrets store, not in the connection form in plain text. The step is done when a test login with that account can list the schemas and read the query history needed for lineage, and fails on any write statement.

  4. Configure each database service in OpenMetadata

    In OpenMetadata, create one database service per source using the documented connector, the service name from your sheet and the dedicated account. Set schema and table filters so that only the agreed scope is ingested, and confirm the exact connector fields in the OpenMetadata deployment documentation for your version. The step is done when each service appears in the catalog with the expected connection status and no authentication error.

  5. Run metadata ingestion for every service

    Run metadata ingestion for each service so that databases, schemas and tables are stored under their service names. Ingest the sources one at a time at first, so that any failure can be traced to one connection. The step is done when the ingestion run reports success and a sample table can be found in the catalog under its service, database and schema path.

  6. Run lineage ingestion and resolve fully qualified names

    Run lineage ingestion for the services that contain queries or pipelines producing cross-database writes, so that OpenMetadata can parse query history and match referenced tables to the services already ingested. Check that each referenced table resolves to exactly one entity. Duplicate matches usually come from the same table name appearing in two services with the same database and schema path, so resolve these by correcting service names or filters before running again. The step is done when a referenced table in another service matches one catalog entry.

  7. Verify that an edge crosses services

    Pick one table in a source service that is written from a table in another service, open its lineage view and confirm that the upstream node belongs to the other service with the expected fully qualified name. Repeat for one or two more paths that cover different platforms. If an edge is missing, check the query history permissions for the source that parses the statement, and check that the query runs in the ingested window. The step is done when at least one cross-service edge is confirmed and documented with its source and target names.

  8. Document the configuration for operators

    Record the final service names, account owners, ingestion schedules and the verified cross-service edges in your runbook, and keep the connector configuration in version control where your policy allows. Confirm exact connector settings against the OpenMetadata deployment documentation for the release you run, since parameter names can change between versions. The step is done when a second engineer can repeat the setup for a new source from the document alone.

Keeping least-privilege service accounts for lineage extraction

Lineage extraction is only as safe as the account that runs it. The cards below cover how to scope one service account per source, where its credentials live, how they rotate, and who may change lineage in the UI.

One service account per source

Create a separate, read-only account for each database service you ingest, rather than sharing one login across warehouses. A per-source account means a revoked or leaked credential affects one source only, and the audit trail shows which connection read which metadata. Ask each connector's documentation which metadata views and query history it reads, and grant only those. Treat any grant you cannot tie to a documented connector need as a question to resolve before go-live.

OpenMetadata security docs

Query history and view definitions

Lineage extraction depends on query logs and view or procedure definitions, so the account often needs access that a plain metadata reader does not have. Grant query-history and definition visibility only where the connector documents the need, and record the reason next to each grant. Review these grants again after any connector upgrade, because the set of objects a connector reads can change between releases. Stored procedure and view lineage can require different permissions than table lineage, so verify each separately.

Separate secret storage

Keep each source password or key in a secrets store that the OpenMetadata ingestion runtime reads at run time, not in ingestion YAML files, Git repositories or chat threads. Restrict which people and workloads can read those secrets, and keep the database account names and the secret paths in your change records. Confirm with your deployment team how the chosen store integrates with your OpenMetadata installation before you rely on it in production.

Rotation and revocation

Set a rotation schedule for every source account and test the process before the first production run, because a failed rotation stops ingestion and lineage refresh for that source. Include a documented way to revoke an account immediately when an engineer leaves or a host is compromised. Ask the database team whether rotation can be done without downtime for scheduled ingestion, and note the window in your runbook.

Who can edit lineage in the UI

Manual lineage edits change what impact analysis and governance teams see, so the people who can draw or delete edges should be a defined group, not every user with catalog access. Decide which roles may edit lineage, keep ingestion service accounts out of human admin roles, and review who holds those roles on a set schedule. Check the current role permissions in your installed version before assigning them.

Admin access with SSO only

OpenMetadata does not support combining SSO and basic authentication at the same time. This means you cannot keep a local username and password for administrators alongside an SSO login, so plan a break-glass procedure before turning on SSO. Decide how administrators will recover access if the identity provider is unavailable, and test that recovery path in a non-production environment first. Confirm with your identity team which OIDC provider you will use before you set admin roles.

OpenMetadata security docs

Why lineage edges break when service names drift

A lineage edge in OpenMetadata does not carry the table itself. It points to a table by its fully qualified name, which is built from the service name, the database, the schema and the table name, joined in that order. When a pipeline or query links a table in one database to a table in another, the edge only resolves if both sides produce the same fully qualified name that the catalog already holds. A renamed service, a database that was renamed on the server, or a case mismatch between the name a parser reads and the name the connector stored is enough to break that match. The edge then either points to nothing or creates a second node that looks like the same table.

Consider an illustrative, hypothetical case. A team ingests a warehouse as a service called warehouse_prod, then later re-registers it as prod_warehouse while a second service still holds the old name. A lineage job that reads warehouse_prod.sales.orders now writes an edge to a node that duplicates the table already in the catalog. Dashboards downstream appear to depend on an empty branch, and the owner sees two orders tables. Check the same pattern for casing: a database called Sales on the server, stored as sales by one connector and Sales by another, will also split into two nodes. Ask whoever owns each source system which exact database and schema names they expect before the first ingestion run.

Freeze a naming convention before the first ingestion run, and write it down with the owners of each connected system. Decide service names, whether they are lowercase, how database names from different servers are distinguished, and who may approve a rename. Then test one cross-service edge end to end: create the lineage between one table in each service, confirm it appears on both nodes with the same fully qualified name, and check that the edge survives a re-ingestion run. Repeat the test after any service rename before trusting the graph. Confirm with your own environment how the platform version you deploy handles renamed services, because existing edges are not something to assume will migrate on their own.

Limits to confirm in your environment

Cross-database lineage depends on which connector reads which source, how each source names its objects, and what permissions the ingestion account holds. The items below are open questions to answer with the OpenMetadata documentation and a pilot run against your own databases, not settled capabilities.

Connector lineage coverage

Confirm which connectors extract lineage across databases and from which query sources, such as live query history, query logs or parsed SQL. A connector that reads only table metadata will not produce edges between separately ingested services. Run one known cross-database query in the pilot and check whether the edge appears in the lineage graph.

Security docs

Views and stored procedures

Ask whether view definitions and stored procedures that reference another database are parsed for lineage, and under which connector. Test one view that joins tables from two services, and one stored procedure that writes across them. Record where the parser fails so the gaps can be filled manually later.

Cross-project naming in cloud warehouses

Confirm how the connector builds fully qualified names when a warehouse spans several projects or accounts. If the service name, database name and project name differ between ingestion runs, the same table can appear twice and lineage can attach to the wrong node. Agree one naming convention before the first full ingestion.

Multi-cluster and multi-region sources

Check how a connector handles several clusters or regions that expose the same logical database. Ask whether each endpoint needs its own service, whether replicas are merged, and how a failover changes the names lineage points to. Test a failover in the pilot before relying on lineage for impact decisions.

Query log permissions

Confirm which privileges the ingestion account needs to read query history or audit logs, and whether those grants are broader than metadata reads. Granting access to query logs can expose query text and sensitive literals. Keep the service account limited to the views and log tables the connector documents, and review grants after each upgrade.

Upgrade and version behavior

Ask whether lineage extraction logic changed in the release you plan to run, and whether existing cross-database edges survive a re-ingestion. Compare lineage counts before and after a test upgrade in a non-production instance. The OpenMetadata 2.0 release notes list breaking changes that can affect ingestion setup, so read them before scheduling the upgrade.

2.0 release notes

Questions teams ask before cross-database lineage work

How much effort does cross-database lineage take in OpenMetadata?

Effort depends mostly on how many database services you ingest, how consistently they are named, and how many permission reviews the ingestion accounts need. Each additional source adds connector configuration, a test run, and a check that lineage edges resolve to the right tables. Naming decisions are often the largest hidden cost: if the same physical database is registered under two service names, lineage can split across them and must be reconciled. Ask any partner to break the quote into sources, naming work, permission reviews and validation, and to state which items are one-time and which recur with each new source or upgrade.

Can our internal team do cross-database lineage without a partner?

Often yes, if you already run OpenMetadata and have someone who can read database permission models and work with your data platform owners. The work is mostly configuration, verification and governance rather than new code. A partner adds the most value when many sources, several projects or accounts, or strict least-privilege reviews are involved, because those raise the chance of inconsistent service names and over-granted accounts. Weigh your team's capacity against the number of sources and the review cadence your security function expects.

What do we need to provide before the work starts?

Plan to provide read access to the database systems in scope, a list of every database, project and account that holds tables used in lineage, and named owners who can approve service names and permission sets. You will also need a naming decision for each service, covering how cross-database references are written and how environments such as development and production are separated. Confirm with your security team who approves service accounts and how credentials are stored before anyone creates them. Missing owners are the most common cause of delayed sign-off.

How long does cross-database lineage take?

Duration scales with the number of sources, the number of cross-database relationships to verify, and how many naming and permission decisions must be approved. A narrow scope with one or two sources and agreed naming can move quickly, while a multi-project estate with inconsistent names will take longer because each relationship needs checking. No fixed duration applies to every environment, so ask for a timeline tied to the written scope, with milestones for naming approval, account creation, first ingestion and lineage validation.

Can manual lineage edges fill gaps the connectors miss?

Yes. OpenMetadata supports manual lineage edits, which help when a relationship exists outside the parsed query history, such as a file-based hand-off or a tool without a supported connector. Manual edges need an owner and a review rhythm, because they do not update when the underlying pipeline changes. Use them for documented gaps only, and record why each edge exists so reviewers can retire it later. Where a cross-database reference can be parsed, prefer ingestion so the edge stays current.

How do OpenMetadata upgrades affect cross-database lineage?

Upgrades can change ingestion behavior, configuration formats and dependencies, so lineage should be retested after each one. OpenMetadata 2.0.0 was released on August 24, 2026, with maintenance releases 2.0.1 to 2.0.5 following about every one to two weeks, according to the OpenMetadata 2.0 release notes. Those notes list breaking changes, including a new Databricks auth format and the need to rebuild custom ingestion images for Python 3.12. Before upgrading, confirm that your service accounts, service names and ingestion images still match the release notes, and rerun lineage checks against a known set of cross-database tables.

What should we ask for in a quote for this work?

Ask for a written scope listing each database service, project and account, the naming convention to be applied, the service accounts and their permission sets, and the validation method used to confirm lineage edges. Request a list of deliverables, the owners who approve each decision, and what is one-time versus recurring, including retesting after upgrades. Ask how permission reviews are documented and how credential handling is set up in your environment. Any figure should be tied to that scope, and the quote should say what changes if sources are added.

How service names, ingestion accounts and lineage edges connect

The diagram starts with two separately ingested database services, each read by its own read-only ingestion account on the source side of the trust boundary. Their metadata crosses into the OpenMetadata catalog, where a shared service naming convention produces fully qualified names for each table. A lineage edge that spans both services resolves only when those names match exactly, so check the service names and the fully qualified names before you trust a cross-database edge.

Two read-only ingestion accounts feed one catalog that joins their tables by name.

Keeping cross-database lineage accurate after upgrades and schema changes

Cross-database lineage stays accurate only if you re-run ingestion whenever something it depends on changes, and you check the results after each change. A renamed database, schema or table, a changed database service name, or a new project can leave edges pointing at entities that no longer match what the source system holds. Treat each rename as an ingestion event: re-run the metadata ingestion for the affected service, then confirm that the renamed entity appears once under its new name and that the old entity is no longer receiving lineage. Where a service name in OpenMetadata was set to match a database or project name in the source, update that setting first so the next run does not create a parallel set of nodes. Keep a short change log of renames, service name changes and the date each re-run completed, because this is the record you will need when a downstream owner asks why a lineage path moved.

Plan a test ingestion before any platform upgrade, and run it against a non-production copy of the catalog if you have one. Major releases can change defaults and ingestion behavior, so the check should cover more than whether the server starts. The OpenMetadata 2.0 release notes list breaking changes that affect ingestion, including changes to how some credentials and authentication blocks are written and a requirement to migrate Great Expectations to 1.3 before upgrading. Confirm which of those apply to your connectors and service accounts, then compare the lineage graph for a sample of cross-database paths before and after the test run. Keep the upgrade check limited to what the release notes state. Confirm any lineage-specific behavior change with the vendor or in your own test environment rather than assuming it.

Between runs, review failed lineage jobs and watch for orphaned nodes. Open the ingestion run history for each database service after every scheduled run and treat a failed or partial lineage job as an open issue, not background noise. Check for permission errors first, because a service account whose grants were narrowed during a least-privilege review will often fail only on lineage or query log extraction. Then look for orphaned nodes: tables or pipelines with lineage edges that no longer connect to a current source entity, and duplicated tables that appear under two service names after a rename. Assign an owner for the service so that failures reach someone who can act on them. Confirm with your team which alert channel receives failed-run notifications, since the monitoring setup and its alerting options depend on how your deployment is run.

How DeployOpen scopes and delivers cross-database lineage

Cross-database lineage work fails most often at the edges: which sources are in, how service names line up across ingestions, and which accounts can read what. DeployOpen fixes these points in a written scope before any connector is configured, then delivers, documents and optionally maintains the result.

Written source inventory

The scope lists every database, warehouse, pipeline and BI source that lineage must cross, with the OpenMetadata service each one maps to. It also records which sources are out of scope and why, such as systems without a supported connector. Ask for this list to name the owner of each source, because unowned sources are the ones that stop being ingested after go-live.

Service name and naming decisions

Cross-database edges depend on consistent service, database and schema names across separate ingestions. The scope sets the naming convention once, including how a project or account is represented, and records it in the handover. Renaming a service after lineage exists is costly, so confirm the convention with your data platform team before the first ingestion runs.

Least-privilege account design

Each ingestion uses a dedicated service account with read access to metadata and only the query history or view definitions that lineage parsing needs. The design maps every account to one source, documents its grants and sets a rotation owner. Confirm with each source's documentation which permissions its connector requires before you request them.

Verification checks

Acceptance testing runs known cross-database paths end to end: a table in one database feeding a model in another should show the expected upstream and downstream edges. The checks also confirm that accounts cannot read beyond their grants and that failed ingestions raise a visible alert. Agree the test paths in the scope so both sides judge the result the same way.

Handover documentation

Delivery ends with a runbook covering the naming convention, the account inventory, the ingestion schedule, the manual lineage edits made during setup and the steps for adding a new source. Your team keeps the documents and the configuration, so the lineage remains maintainable after the engagement ends.

Optional retainer support

A retainer can cover OpenMetadata upgrades, connector maintenance and repeated lineage checks after schema changes or new sources. Scope and price follow from the written agreement, so ask what is included per period, how upgrade testing is run and how urgent fixes are handled. Upgrades in this release line include breaking changes, so ask how each one will be tested first.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.