Skip to content

OpenLineage column lineage drops the per-input transformations of facet 1-2-0, so function is always empty #38485

Done

Description

@shivakrishnaah

Affected module

Backend (OpenLineage REST endpoint) and Ingestion (OpenLineage source)

Describe the bug

Version 1-2-0 of the OpenLineage ColumnLineageDatasetFacet reports how each input contributes to an
output column as a transformations list on the input field (type, subtype, description,
masking). The field-level transformationDescription / transformationType it replaced are no
longer in the facet, and current producers (the Spark integration among them) send only the list.

OpenMetadata's facet schema (api/lineage/openlineage/openLineageFacets.json) models only the older
shape: inputField has namespace, name and field. So:

  • the REST endpoint (OpenLineageMapper.extractColumnLineage) sets ColumnLineage.function from the
    field-level transformationDescription, which 1-2-0 producers never send, and the per-input
    transformations are discarded on parse;
  • the ingestion OpenLineage source (openlineage/metadata.py, _get_column_lineage) builds
    ColumnLineage(toColumn, fromColumns) and reads neither.

Every OpenLineage column edge is therefore stored with no function: a filter or join column looks
identical to the column a value was aggregated from.

To Reproduce

  1. POST a COMPLETE run event to /api/v1/openlineage/lineage whose output has a columnLineage facet like:
    {"fields": {"revenue_usd": {"inputFields": [
      {"namespace": "ns", "name": "schema.orders", "field": "amount",
       "transformations": [{"type": "DIRECT", "subtype": "AGGREGATION"}]}]}}}
    (input and output datasets resolvable to tables).
  2. Read the edge's lineageDetails.columnsLineage.

Expected behavior

The column edge carries the transformation, e.g. function: "DIRECT/AGGREGATION". #35862 asks for a
typed transformation on ColumnLineage; until that exists, function is the slot OpenLineage edges
can use, as Tableau calculated-field edges already do.

OpenMetadata version

main (2a4020d), 2.1.0

OpenMetadata Ingestion package version

2.1.0.1

Additional context

Activity

  1. added a commit that references this issue on Nov 23, 2026
    dc130df
  2. iamkiayun commented on Nov 24, 2026

    @iamkiayun
    Contributor

    Could I take this issue? I’d like to preserve each input column’s transformation in both the REST endpoint and Python ingestion, with tests for modern events such as DIRECT/AGGREGATION and for producers that send the legacy fields.

  3. added a commit that references this issue on Nov 26, 2026
    8cf1dca
  4. added a commit that references this issue on Nov 26, 2026
    8d3f081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions