Skip to content

release-2.0.7 + a8c ingestion fixes (2.0.7.0+a8c.1) - #117

Open
joaopamaral wants to merge 8 commits into
release-2.0.7from
ingestion-fixes-2.0.7
Open

joaopamaral wants to merge 8 commits into
release-2.0.7from
ingestion-fixes-2.0.7

Conversation

@joaopamaral

@joaopamaral joaopamaral commented Nov 9, 2026 •

Copy link
Copy Markdown

Summary

Ingestion build branch for OpenMetadata 2.0.7: upstream tag 2.0.7-release (branch release-2.0.7 in this fork) plus the ingestion-only fixes we still need on 2.0.7. Package version 2.0.7.0+a8c.3.

Carried fixes

  • Cross-catalog view lineage (#28983, resubmitted as #37501): database=None wildcard fallback in get_table_entities_from_query, scoped to service_names.
  • Looker LOOKER_UI_BASE (#29432): "View in Looker" links use the UI host instead of the API hostPort.
  • Looker: skip data-less tiles (#29434): no merge?mid=None charts.
  • Sink / Superset DB-mode guards (fork only): write_lineage tolerates a None response, and the DB-mode fetch_dashboard fallback only runs on the API client.
  • Trino cross-database lineage: schema reference name is a string (#37496). _get_cross_database_schema_fqn did databaseSchema.name.root, but EntityReference.name is a plain string in the 2.0 spec, so the cross-database step failed the whole lineage workflow. Introduced upstream by Fixes #27419: Trino cross-database lineage for case-insensitive table names open-metadata/OpenMetadata#27495.
  • Trino: restrict the table_comments scan to the filtered tables (upstream PR to follow). get_table_comment batched system.metadata.table_comments once per schema but ignored tableFilterPattern; the comments query now adds an IN (...) list of the surviving tables.

Note on open-metadata#29432 / open-metadata#29434: upstream superseded both with #32975 (displayUrl on the Looker connection), shipped from 2.1.0-rc1; 2.0.7 does not have it, so the env-var version stays here until 2.1.

Dropped: Superset DataModel → Chart → Dashboard bridge (open-metadata#28240)

Carried until a8c.2. On 2.0.7 the stock direct DataModel → Dashboard edge is created without errors, so the 404 that motivated the bridge no longer reproduces, and upstream main now draws Dashboard → Chart edges, the opposite direction. The upstream resubmission (open-metadata#37500) was closed. Edges written by earlier bridge runs stay in the lineage graph until removed.

Build

Regenerate ingestion/src/metadata/generated with scripts/datamodel_generation.py and the ANTLR parsers (root Makefile steps; ingestion/ has no generate target on 2.0), then:

cd ingestion && python -m build --wheel
# dist/openmetadata_ingestion-2.0.7.0+a8c.3-py3-none-any.whl

Test plan

  • Unit tests: looker / superset / lineage / sink / trino suites pass locally
  • Trino comments IN predicate and cross-database schema reference covered by unit tests
  • Trino, Trino views lineage and Superset (DB mode) workflows against a 2.0.7 server: 0 errors

@github-actions

Copy link
Copy Markdown

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

Copy link
Copy Markdown

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

Copy link
Copy Markdown

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

joaopamaral and others added 8 commits November 10, 2026 17:35
…d fallback

When the same physical data is exposed through different catalogs across
database services, a view in one catalog can reference a source table that
another service ingested under a different database name. get_table_entities_
from_query searched every service (including crossDatabaseServiceNames) with the
view's database name, so the source table under a different database never
matched and no lineage edge was created -- even with processCrossDatabaseLineage
and crossDatabaseServiceNames configured.

Add a final database=None fallback (after the exact and schema fallbacks) so the
FQN search wildcards the database (<service>.*.<schema>.<table>) and resolves the
table across the configured cross-database services. It is scoped to
service_names, which only holds the current service plus the explicitly allowed
crossDatabaseServiceNames, so it cannot reach unrelated services.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Joao Amaral <7281460+joaopamaral@users.noreply.github.com>
(cherry picked from commit 676015d)
hostPort is bound to the Looker API host (SDK LOOKERSDK_BASE_URL), so the
dashboard and chart-merge sourceUrls built from it point at the API host
instead of the browser UI. Add a _ui_base helper that prefers the
LOOKER_UI_BASE env var and falls back to hostPort (unchanged behavior when
unset). No schema change - configured via ingestion job env.

(cherry picked from commit f5e5fd3)
Text/markdown/decoration tiles have no query, no result-maker query, and a
None merge_result_id - the connector was emitting a dead {host}/merge?mid=None
sourceUrl for ~3.6k of them. Skip these tiles instead and log each at info
level. Real merge tiles (merge_result_id set) keep their merge URL.

Bumps build tag to superset.chart.bridge.2.

(cherry picked from commit 4d8d4ea)
…e response

The Superset 5.0+ position_json fallback in SupersetSourceMixin called
self.client.fetch_dashboard() whenever position_json was empty, but in
DB mode self.client is a SQLAlchemy Engine, failing with "'Engine'
object has no attribute 'fetch_dashboard'" and dropping all charts of
the affected dashboard. Guard on the client actually exposing
fetch_dashboard.

MetadataRestSink.write_lineage crashed with "'NoneType' object has no
attribute 'get'" when add_lineage returned None, which happens when
the edge is written but reading back the origin node's lineage 404s
(e.g. its graph references a deleted chart). Treat that as success and
fall back to the request's from-entity id.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 12fc11d)
get_table_comment batches system.metadata.table_comments once per schema, but the query ignores tableFilterPattern: a run scoped to a handful of tables in a schema with hundreds of them still reads every row and can hit the query timeout. TrinoSource.get_tables_name_and_type now materialises the filtered table list before the first table is processed and records it on the dialect, and the comments query adds an IN list of those names.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ase lineage

_get_cross_database_schema_fqn did trino_table.databaseSchema.name.root, but databaseSchema is an EntityReference whose name is a plain string (only an entity's own name is the EntityName wrapper), so every table raised AttributeError and the cross-database step failed the whole lineage workflow. The existing test hid it by building the table with MagicMock. Accept both shapes and add a test with a real EntityReference.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…label

The sink lineage test expected the bare id for a None response; since 2.0.7 the sink reports the "{type}:{uuid}" label when no FQN comes back, so the expectation follows. New tests check the table_comments query carries the IN list of recorded tables (quotes doubled), stays unrestricted when nothing was recorded, and that TrinoSource records the filtered names on the dialect.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e lineage)

Same as 2.0.7.0+a8c.2 minus the Superset DataModel -> Chart -> Dashboard bridge, to check how stock 2.0.7 Superset lineage behaves now that the direct DataModel -> Dashboard edge is resolved differently upstream.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

This branch had an error being deployed

1 failed deployment
test — 6fb47f02 Deployed Nov 10, 2026 by joaopamaral via playwright-postgresql (chromium) #512
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.

1 participant