You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MSSQL synonyms: Table.aliases is dropped on every table that already exists in OpenMetadata #33374
Table.aliases (SQL Server synonyms, ingested via includeSynonyms — #31512) is silently dropped for every table that already exists in OpenMetadata. Only tables created for the first time ever receive their aliases.
When an entity already exists, TopologyRunnerMixin.yield_and_update_context emits a PatchRequest instead of a create. The sink then calls:
and build_patch diffs both models through model_dump_json(include=allowed_fields), so a field absent from the allow-list can never produce an operation. aliases is not in ALLOWED_COMMON_PATCH_FIELDS, so the synonyms are discovered, put into the create request, and then thrown away by the patch.
There is no error and no warning — the run reports 100% success.
To Reproduce
Ingest an MSSQL service (tables get created).
Create a synonym in SQL Server for one of those tables.
Enable includeSynonyms and re-run metadata ingestion.
GET /api/v1/tables/name/<fqn> → aliases is still null.
Log signature: Processed records: 0 / Updated records: N — Status.scanned routes PatchRequest/PatchedEntity into updated_records, so an all-updated run is an all-patch run.
Verified end-to-end against a 1.13.6 server with the released openmetadata-ingestion==1.13.6.0 agent, holding overrideMetadata constant:
agent
overrideMetadata
new synonym at source
result
1.13.6.0
true
dbo.prod_catalog_legacy
alias not written
1.13.6.0 + "aliases": True
true
same
alias written, entity v0.1 → v0.2, indexed
Expected behavior
A synonym added, changed or removed at the source is reflected in Table.aliases on every run, not just on first creation.
Additional context
overrideMetadata is not a workaround: it forces the patch but goes through the same allow-list.
sourceHashis in the allow-list, so a broken run still advances the stored hash and the connector then reports "no changes detected" and skips the table. Upgrading the agent alone therefore does not backfill: one run with overrideMetadata enabled is needed after the fix.
Affects main and 1.13 — the allow-list is identical on both.
Activity