Skip to content

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

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

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

Conversation

@Khairajani

Copy link
Copy Markdown
Contributor

Fixes #38498

Backport of #38501 to 2.1.

  • 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.1 (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 harshsoni2024 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 an exact same-model Omni topic or view match, which could change dashboard lineage attribution for colliding names.

Resolves an Omni topic and view sharing a name within one model by preferring the data model whose name matches exactly, while cross-model and shared-base-view matches stay 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 7b4487b into 2.1 Nov 26, 2026
44 of 46 checks passed
@Khairajani
Khairajani deleted the backport-38501-2.1 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