Skip to content

[2.1] Fixes #36788: keep OpenLineage column lineage for names with reserved characters or dots - #38902

Merged
Khairajani merged 1 commit into
2.1from
backport-36789-2.1
Nov 26, 2026
Merged

Khairajani merged 1 commit into
2.1from
backport-36789-2.1

Conversation

@Khairajani

Copy link
Copy Markdown
Contributor

Fixes #36788

Backport of #36789 to 2.1.

  • OpenLineage column lineage is no longer dropped for column names with reserved characters (a>b) or dots ("c.d"), on both the REST endpoint and the Kafka/Kinesis connector.
  • Clean cherry-pick (git cherry-pick -x) of the merged commit.
  • It also lands first so the 2.1 backport of Fixes #38485: Preserve per-input OpenLineage column transformations #38615 (per-input OpenLineage transformations) applies on top of it.
  • Passing locally on this branch: OpenLineageMapperTest, OpenLineageColumnMapperTest, OpenLineageEntityResolverTest (147 tests) and test_openlineage.py (139 tests).

🤖 Generated with Claude Code

… characters or dots (#36789)

* Fix OpenLineage column lineage for names with reserved characters or dots

extractColumnLineage built column FQNs from the raw field name, so `a>b` and
`c.d` matched neither `a__reserved__arrow__b` nor `"c.d"`, and
validateLineageDetails dropped their lineage without reporting it.

Match each field against the stored columns of its table instead. A dot in a
field is either part of a name or a path to a nested column, and only the
stored columns can tell which. A table created from an event now stores the
same names connectors do.

* Use stored column FQNs in OpenLineage connector column lineage

The connector built column FQNs from the name of the fetched column. That name
has its reserved characters decoded and its dots unquoted, so `a>b` and `c.d`
matched no real column and the server dropped their lineage without reporting
it. Send the FQN the column already carries.

* Read OpenLineage input columns once per event and record the field rule

extractColumnLineage read every input for every output, including inputs the
facet never names, so an event with several outputs repeated those table loads.
Keep the read columns for the whole event and load an input only when a field
references it.

Add the decision record for how a field resolves to a stored column and which
name a created column takes. The Java server and the Python ingestion now have
to agree on that format, and the PR description does not reach git log.

* Move the special-field-names IT out of the helpers section

The test had been inserted between assertAuditFieldsStamped and its
Javadoc, so the Javadoc described the wrong method.

---------

Co-authored-by: ccurve1870 <hammerous@gmail.com>
Co-authored-by: ulixius9 <mayursingal9@gmail.com>
(cherry picked from commit cff416d)
@Khairajani
Khairajani requested review from a team as code owners November 26, 2026 18:25
@Khairajani
Khairajani requested review from TeddyCr and stout-yeoman and removed request for a team November 26, 2026 18:25
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Resolving OpenLineage fields through stored column names changes lineage mapping; ambiguous or mismatched fields could associate lineage with the wrong columns.

Backports the fix that keeps OpenLineage column lineage for column names containing reserved characters (a>b) or dots ("c.d"), applied to both the REST endpoint and the Kafka/Kinesis connector. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Khairajani
Khairajani merged commit 177d36d into 2.1 Nov 26, 2026
48 of 49 checks passed
@Khairajani
Khairajani deleted the backport-36789-2.1 branch November 26, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants