Skip to content

Ingestion bulk PUT wipes descriptions, display names, certification and table constraints the source doesn't send #34662

Description

@ulixius9

Affected module

Backend (EntityRepository, TableRepository) — bulk ingestion path

Describe the bug

Since #28155 moved override handling to the server, ingestion writes every entity through PUT /<entity>/bulk. The client-side RESTRICT_UPDATE_LIST that 1.13 used to stop a source with no value from deleting a stored one no longer applies, and the server doesn't fully replace it:

  • description / displayName: with overrideMetadata=true, updateDescription() and updateDisplayName() skip their bot guard entirely, so an empty incoming value overwrites a stored one. Column descriptions already have a never-blank check (fix(backend): column description updation with overrideMetadata=true #31543); entity-level fields don't.
  • certification: with overrideMetadata=true, a request that omits certification deletes the stored one (Fixes 32792: let CreateTableRequest carry certification directly #32793). Most connectors never send certification.
  • tableConstraints: updateTableConstraints() has no bot guard at all. Any bot PUT that sends no constraints removes the stored ones — with override on or off (override just disables the sourceHash fast path, so it hits every table at once). Sources like Trino never report constraints, so user-curated constraints are lost.

To Reproduce

  1. Create a table via the ingestion bot with a description, displayName and a PRIMARY_KEY constraint.
  2. Bulk-PUT the same table as the ingestion bot with a changed sourceHash, overrideMetadata=true, and no description / displayName / constraints.
  3. GET the table: description, displayName and tableConstraints are gone.

Expected behavior

Override Metadata replaces a stored value only when the source supplies one. A bot PUT that sends nothing for these fields leaves the stored values untouched; constraints on columns the source dropped are still cleaned up.

Version

  • OpenMetadata: 2.0.x (also on main)
  • Ingestion: 2.0.x, database metadata pipeline (e.g. Trino) with Override Metadata enabled

Activity

  1. added a commit that references this issue on Oct 5, 2026
    8c67094
  2. added a commit that references this issue on Oct 5, 2026
    475d759
  3. added a commit that references this issue on Oct 7, 2026
    c212d1f
  4. added a commit that references this issue on Oct 7, 2026
  5. added a commit that references this issue on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions