Repository navigation
release-2.0.7 + a8c ingestion fixes (2.0.7.0+a8c.1) - #117
joaopamaral wants to merge 8 commits into
Conversation
|
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! |
|
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! |
|
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! |
…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>
4e47018 to
6fb47f0
Compare
|
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! |
Summary
Ingestion build branch for OpenMetadata 2.0.7: upstream tag
2.0.7-release(branchrelease-2.0.7in this fork) plus the ingestion-only fixes we still need on 2.0.7. Package version2.0.7.0+a8c.3.Carried fixes
database=Nonewildcard fallback inget_table_entities_from_query, scoped toservice_names.LOOKER_UI_BASE(#29432): "View in Looker" links use the UI host instead of the APIhostPort.merge?mid=Nonecharts.write_lineagetolerates aNoneresponse, and the DB-modefetch_dashboardfallback only runs on the API client._get_cross_database_schema_fqndiddatabaseSchema.name.root, butEntityReference.nameis 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.table_commentsscan to the filtered tables (upstream PR to follow).get_table_commentbatchedsystem.metadata.table_commentsonce per schema but ignoredtableFilterPattern; the comments query now adds anIN (...)list of the surviving tables.Note on open-metadata#29432 / open-metadata#29434: upstream superseded both with #32975 (
displayUrlon 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 upstreammainnow 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/generatedwithscripts/datamodel_generation.pyand the ANTLR parsers (root Makefile steps;ingestion/has nogeneratetarget on 2.0), then:Test plan
INpredicate and cross-database schema reference covered by unit tests