Skip to main content

How Column-Level Lineage Works

Column-level lineage shows how individual columns move between tables. Use it to:
  • Understand how one table relates to another.
  • Run impact analysis before you change a column.
  • Trace where a column comes from and what depends on it.
OpenMetadata can generate this lineage automatically. You can also edit it by hand to add anything that is not detected. Column-Level Data Lineage in OpenMetadata

View Column-Level Lineage

To see the column-level lineage of a table:
  1. From the left navigation bar, select Explore, or use the search bar at the top.
  2. Open the table you want to inspect.
  3. Select the Lineage tab. Lineage tab on a table page
  4. Select the Layers button, and under Level, select Field-level Lineage. Each table in the graph now lists its columns.
  5. Select a column to follow it through the graph.
Quick Tip: Expand a table in the graph to see all its columns.
If a table shows no column links, generate them with a Lineage Agent (see the next section) or add them by hand.

Generate Column-Level Lineage Automatically

Run a Lineage Agent on the database service that holds the tables:
  1. Open the database service, then select the Agents tab.
  2. Select Add Agent > Add Lineage Agent. Add Lineage Agent option in the Add Agent menu on a database service
  3. Configure the agent, then save it.
  4. On the Agents tab, find the Lineage Agent and select Run. Run button for an agent on the Agents tab
When the run finishes, open the table’s Lineage tab to see the new links.

Manually Edit Column Level Lineage

OpenMetadata supports manual editing of both table-level and column-level lineage. Use it to add links that are not detected automatically. To link columns by hand:
  1. Open the table and select the Lineage tab.
  2. Click Edit (the pencil icon) in the lineage toolbar. The asset panel opens next to the graph. Edit icon in the lineage toolbar
  3. If the table that holds the column you want to trace is not in the graph, add it first:
    • In the asset panel, choose the asset type, such as Tables.
    • Search for the table and add it to the graph.
    Asset panel in lineage edit mode listing Tables, Dashboards, Charts, Stored Procedures, Topics, and ML Models
  4. Find the column in the source table. Each column has an anchor point on its edge.
  5. Drag from the anchor point of the source column to the anchor point of the column it feeds in the other table.
  6. Repeat for each column you want to link.
  7. Optional: To remove a link, select the x icon on the connecting line.
  8. Save your changes.
Watch the video on editing column-level lineage.

Metric Column Lineage

A metric is often calculated from a single column. Link the column to the metric so the lineage shows exactly which field feeds the metric. For example, link sales.amount to the metric Total Sales.
  • Direction: Connect a column to a metric (column feeds the metric), or a metric to a column.
  • Endpoint: A metric has no columns of its own. In column-level lineage, the metric appears as one connection point that carries the metric’s own name.
  • Visibility: The connection point appears on a metric node at the Field-level Lineage level or in edit mode. In the default view, a metric node shows no connection point.
  • Impact Analysis: The column-to-metric link also appears in the column-level Impact Analysis view, so you can see which metrics depend on a column before you change it.
Before you start, make sure you can edit the metric and the table that holds the column.
  1. Open the metric and select the Lineage tab.
  2. Select Edit (the pencil icon) in the lineage toolbar.
  3. If the table that holds the column is not in the graph, add it from the asset panel. For more information, see Manually Edit Column Level Lineage.
  4. Select the Layers button and, under Level, select Field-level Lineage so the table’s columns are listed.
  5. Drag from the anchor point beside the column to the anchor point on the metric.
  6. Save your changes.
To remove the link, select the x icon on the connecting line in edit mode.
You can also create these links with the API by adding a columnsLineage entry whose toColumn is the metric’s fully qualified name.

How to Manually Add or Edit Lineage

Edit the table and column level lineage manually.