Repository navigation
[2.1] Fixes #36788: keep OpenLineage column lineage for names with reserved characters or dots - #38902
Conversation
… 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)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ Approved 🟡 Medium riskResolving 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 ( VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Fixes #36788
Backport of #36789 to
2.1.a>b) or dots ("c.d"), on both the REST endpoint and the Kafka/Kinesis connector.git cherry-pick -x) of the merged commit.OpenLineageMapperTest,OpenLineageColumnMapperTest,OpenLineageEntityResolverTest(147 tests) andtest_openlineage.py(139 tests).🤖 Generated with Claude Code