Repository navigation
Fixes 36948: Skip ambiguous Fivetran table lineage - #37462
harshsoni2024 merged 5 commits into
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsFivetran now skips ambiguous table endpoints instead of selecting the first match, which could leave lineage edges absent until service scope is clarified. Fivetran table lineage now requires a single distinct active table across the configured services instead of attaching to the first match, and schema and database names are encoded in lookups. Resolved the finding that schema and database names were still looked up unencoded. No open issues found. ✅ 1 closed✅ Edge Case: Schema and database names are still looked up unencoded
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 |
Describe your changes:
Fixes #36948
When several database services contain the same logical table, Fivetran previously attached lineage to the first matching service. Table endpoints now require one distinct active entity across the configured services. Ambiguous or incomplete lookups emit an actionable warning and skip that edge, including when other tables in the pipeline resolve successfully.
With no configured services, discovery remains available but must also be unique. This fix does not add cleanup of existing incorrect edges; that remains a separate operator action. Restricting
dbServiceNameswith a matchingpipelineFilterPatternremains the workaround for ambiguous sources.Type of change:
High-level design:
The connector reuses the bounded
EntityResolverand table lookup plans per service, deduplicates hydrated table UUIDs, and distinguishes not-found, ambiguous, and failed lookups. Each lookup closes its owned resolver while retaining the borrowed metadata client. Topic resolution and successful table/column lineage keep their existing behavior. The identity rule and upgrade implications are recorded indocs/decisions/2026-11-10-fivetran-table-lineage-requires-a-unique-entity.md.Tests:
Use cases covered
Both service orders and endpoints; unique later-service matches; duplicate identities; absent database/schema/service; escaped literal names; stale/deleted entities; failed, incomplete, or oversized searches; mixed successful and ambiguous tables; table/topic edges; disabled entities; column lookup failures; self-edges; resolver cleanup and subsequent runs.
Unit tests
make unit_ingestion ARGS="-n 0 tests/unit/topology/pipeline/test_fivetran.py tests/unit/source/pipeline/fivetran tests/unit/entity_resolution/test_resolver.py tests/unit/lineage/test_topic_lineage.py": 235 passed, 24 warnings.FivetranSourceclass: 223/250, 89.2%. All 45 changed executable lines were covered. These figures come from the saved focused unit run, before integration coverage was appended.make py_format,make py_format_check, andmake static-checkspassed. Static checks reported 0 errors and 137 warnings. Decision-record validation andgit diff --checkpassed.Backend integration tests
Not applicable, no Java or backend API changes.
Ingestion integration tests
make run_ometa_integration_tests ARGS="tests/integration/fivetran": 11 passed, 8 warnings. This suite uses a local HTTP server and requires no production credentials.Playwright (UI) tests
Not applicable, no UI changes.
Manual testing performed
The automated tests execute the real connector, SDK, and resolver against fake HTTP boundaries. A live Fivetran ingestion was not run; the focused checks require no production credentials. The broader ingestion suite remains outside this focused PR check set.
UI screen recording:
Not applicable, Python ingestion fix.
Checklist:
Fixes <issue-number>: <short explanation>and the issue is linked above.REVIEW.md: fresh-context review of24176c650f773be9938b8b551ad65d2ae999291bfound no blocking issues or missing tests for changed behavior.Drafted-by: Codex GPT-6; reviewed by @Vamsi-klu before posting


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Fivetran table lineage now requires one distinct active table across the selected database services instead of choosing the first match.
No actionable issues found.
Reviews (4) · Last reviewed commit: "Merge branch 'main' into fix/36948-uniqu..." · Reviewed by Greptile