Skip to content

CSV import at schema/database/service level wipes column-level custom properties (column.extension) #31858

Closed

Description

@sonika-shah

Affects

  • Reproduced on 1.12.14 and on main / 2.0 (server 2.0.0). Not fixed by upgrading.

Summary

Column-level custom properties (column.extension) are wiped when a table is updated through a parent-level CSV import — i.e. importing at the Database Schema level (non-recursive) or at Schema/Database/Service level with recursive=true. Importing at the table level does not have this problem (it preserves column.extension).

This is user-reachable from the UI: Manage (⋮) → Import on a Schema/Database/Service page uses recursive=true, so a parent-level re-import drops column custom properties.

Steps to reproduce

  1. Create a table whose columns carry custom properties, e.g. a column with extension: { "colGovOwner": "x@y.com" }.
  2. Export the parent Database Schema: GET /api/v1/databaseSchemas/name/{fqn}/export (and/or with recursive=true).
  3. Re-import unchanged: PUT /api/v1/databaseSchemas/name/{fqn}/import?dryRun=false (or &recursive=true).
  4. Fetch the table: GET /api/v1/tables/name/{fqn}?fields=columns and inspect columns[].extension.

Expected

Column extension values unchanged.

Actual

Column extension becomes null on the affected columns.

Root cause (pointers)

The parent-level import updates each child table by re-createOrUpdate-ing it rather than patching only the CSV fields:

  • Non-recursive schema path: DatabaseSchemaRepository.DatabaseSchemaCsv.createEntityWithoutRecursion(...) fetches the table and re-PUTs it; the re-PUT does not carry column.extension through.
  • Recursive path: columns are re-applied via EntityCsv.createColumnEntity(...) using a fetch ("name,displayName,fullyQualifiedName,columns,tags") that does not preserve column.extension.

Suggested fix

Ensure the parent-level table update path preserves existing column.extension (either include it in the fetch and carry it through, or use a field-scoped patch that never touches column extension). A regression test should assert a schema-level export→import round trip preserves columns[].extension.

Activity

  1. added 2 commits that reference this issue on Aug 21, 2026
    940093e
    a56fd1c
  2. added a commit that references this issue on Aug 26, 2026
  3. added a commit that references this issue on Nov 6, 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