Lineage
No lineage endpoint is removed and no lineage field is renamed, so existing lineage ingestion and dashboards keep working. OpenMetadata 2.1 changes who may read and write lineage, what an edge may point to, and how the OpenLineage endpoint reports results. Review the entries marked Breaking and Behavioral before you upgrade. This matters most if you use custom roles and policies, run your own lineage scripts, or post OpenLineage events.Lineage Edges Can Only Name a Pipeline or Stored Procedure
An edge can carry apipeline value that records what moved the data. In OpenMetadata 2.1, that value must be a
pipeline or a stored procedure. Any other entity type, such as a database service, is refused
with 400 Bad Request and the message Lineage pipeline must be a pipeline or a storedProcedure, not a <type>.
This applies to PUT /v1/lineage, the by-name PUT, and the PATCH endpoints.
OpenMetadata 2.0 accepted any entity type. The named entity was copied into the search document of the downstream
entity, which every user can read. That could expose, for example, a service connection.
The upgrade to OpenMetadata 2.1 cleans existing data:
- A data migration clears the
pipelinevalue from any existing edge that names something other than a pipeline or stored procedure. Each cleared value is written to the server log. - The copies already stored in the search index are removed when you run the reindex that the upgrade requires.
Search your lineage scripts for edges that set
pipeline to a service or other entity, and send a pipeline
or stored procedure instead.Lineage Reads Now Check Permissions
In OpenMetadata 2.0, lineage reads did not check whether the caller could view the entities in the graph. In OpenMetadata 2.1, they do.
The permission check covers the whole path. A node you cannot view is removed, and so is everything that is
reachable only through it. Two users can therefore see different graphs for the same table.
If a role used to see lineage through an overly narrow policy and now gets an error or a smaller graph, grant
ViewBasic on the affected entities. Anything that read the platform-wide lineage graph with a non-admin
account must switch to an admin account, or to GET /v1/lineage/scene.Writing an Edge With a Pipeline Needs View Access to That Pipeline
Behavioral. Affects bots and users who add or patch edges.
EditLineage on both ends of the edge, the caller now also needs ViewBasic on a pipeline or stored
procedure that the request newly attaches to the edge, or the request fails with 403. This applies to PUT /v1/lineage,
the by-name PUT, and the PATCH endpoints. A pipeline that the stored edge already carries is not checked again, so
repeated ingestion runs are not affected.
Check that your ingestion bot’s role includes view access to the pipelines it references.
Batch Hydration Is Limited to Data Assets
POST /v1/lineage/hydrate now accepts only the entity types that lineage draws as nodes: table, topic,
dashboard, dashboardDataModel, chart, pipeline, mlmodel, container, searchIndex, storedProcedure,
apiEndpoint, metric, directory, file, spreadsheet, and worksheet. A request that includes any other
type, such as a service or a user, returns 400 Bad Request.
Each entity is also checked with the view permissions that a normal GET of the same fields needs. Entities the
caller cannot view are left out of the response instead of failing the whole batch. The 400 applies to the whole request.
Fetch services, users, and other non-asset types with their own
GET endpoints.OpenLineage Endpoint Reports Unresolved Datasets
POST /v1/openlineage/lineage and POST /v1/openlineage/lineage/batch now report what they could not resolve.
Events that carry no lineage (nothing to resolve) still return
200.
Entity creation from events also changes:
- Only a Table can be created from an event, together with its missing Database and Database Schema. This
needs the dataset namespace to be listed in
namespaceToServiceMappingand the event to carry the table’s columns in its schema facet. - A Pipeline is never created from an event. The pipeline of a job is looked up, by the name
<namespace>-<job name>, in the pipeline service you configured. - Creating anything from an event is now checked like a REST create by the same caller. The caller needs
Createpermission on the parent, and plan limits apply. namespaceToServiceMappingis matched exactly first, then by the longest matching namespace prefix.
Check your producer’s error handling for
400 and partial_success. Map each dataset namespace in
namespaceToServiceMapping, and create the pipelines you want edges to carry. If you rely on automatic
creation, give the posting identity permission to create tables.Lineage Data Migrations
Behavioral. These run automatically during the upgrade to OpenMetadata 2.1.
- Edges that name an unsupported entity as their pipeline are cleaned. The step is safe to run again.
- A new index speeds up lookups of edges by pipeline.
- The audit log stores lineage events with a long combined name of two entities. That name column no longer has a length limit, so audit entries for deeply nested entities are no longer dropped.
- The built-in Resource Description Framework (RDF) rule
transitive-lineage-closurenow ships disabled, because it stores every ancestor and descendant pair and grows quickly with lineage depth. The migration disables it where an earlier build had enabled it. Turn it on again from the RDF settings only if you need it.
Lineage Change Events
No change.
entityLineageAdded, entityLineageDeleted, and entityLineageUpdated were already available in OpenMetadata 2.0
and behave the same way.Traversal and Time-Window Semantics
No change in meaning. The
startTime and endTime window still prunes the graph during traversal, so one
out-of-window edge hides everything reachable only through it. Edges with no timestamps still match any window.
If you rely on this behavior, refer to the OpenMetadata 2.0 notes.GET /v1/lineage/{entity}/{id} now expands each entity once, at the shortest distance
that reaches it. The nodes and edges returned within the requested depth do not change, but deep graphs with many
cross links respond much faster and each edge is returned once.
New Lineage Scene API
Additive. Powers the new lineage views in the UI. Nothing existing is replaced.
focusFqn and entityType must be sent together or not at all. When you send them, the caller needs ViewBasic
on the focus entity or the call returns 403. The scene is built per caller, so it only contains what the caller may view. An unsupported lens or band returns 400.
Model Context Protocol (MCP) Lineage Tool
Additive. Affects AI agents that call
get_entity_lineage.columnis the fully qualified name of one column. Only the edges and column mappings that carry that column are returned, followed across renames.cursortakes thenextCursorof a response that hashasMoreand returns the next page of edges.
upstreamDepth and downstreamDepth also accept 0 to skip one direction. Responses can now include
hiddenNodes (how many nodes were removed because the caller cannot view them) and hiddenNodesUnchecked.
A graph with hiddenNodes above 0 is a partial view.
Connector Lineage
Additive. For more information, see
Ingestion & Connectors.
entityLineage type have no field changes in OpenMetadata 2.1
beyond the schema dialect update. For more information, see
API & Schema Contracts.