Skip to content

[2.0] Fixes #38498: resolve an Omni topic and view that share a name within one model - #38871

Merged
Khairajani merged 1 commit into
2.0from
backport-38501-2.0
Nov 26, 2026
Merged

Khairajani merged 1 commit into
2.0from
backport-38501-2.0

Conversation

@Khairajani

Copy link
Copy Markdown
Contributor

Fixes #38498

Backport of #38501 to 2.0.

  • A curated topic and a view with the same name in one Omni model (e.g. topic Orders on analytics__orders and view ANALYTICS/orders.view) were always reported ambiguous, so their tiles got no lineage. The reference now resolves to the data model spelled exactly like it; cross-model and shared-base-view matches stay ambiguous.
  • metadata.py cherry-picked cleanly; the test file conflicted on unrelated context, so the new tests were appended.
  • test_omni.py passes on 2.0 (47/47).

🤖 Generated with Claude Code

… one model (#38501)

* Omni: resolve a topic and a view that share a name within one model

* Omni: apply the exact-name tie-break to the name index only

An alias-index hit names a shared base view, not a topic, so a topic
spelled like the view's leaf must not win it. Keep that case ambiguous
and add a regression test.

---------

Co-authored-by: Khairajani <himanshukhairajani8@gmail.com>
(cherry picked from commit 20eabff)
@Khairajani
Khairajani requested a review from a team as a code owner November 26, 2026 14:05
@Khairajani
Khairajani requested review from mohittilala and removed request for a team November 26, 2026 14:05
@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

The resolver now selects exact same-model names from ambiguous Omni matches, which could attach lineage to a different topic or view.

Resolves an Omni topic and view sharing a name within one model by preferring the data model whose name exactly matches the reference, so their lineage tiles are no longer dropped as ambiguous. Cross-model and shared-base-view matches remain ambiguous. 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 added the safe to test Add this label to run secure Github workflows on PRs label Nov 26, 2026
@Khairajani
Khairajani merged commit 3e5a195 into 2.0 Nov 26, 2026
69 of 71 checks passed
@Khairajani
Khairajani deleted the backport-38501-2.0 branch November 26, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants