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
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
Create a table whose columns carry custom properties, e.g. a column with extension: { "colGovOwner": "x@y.com" }.
Export the parent Database Schema: GET /api/v1/databaseSchemas/name/{fqn}/export (and/or with recursive=true).
Re-import unchanged: PUT /api/v1/databaseSchemas/name/{fqn}/import?dryRun=false (or &recursive=true).
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
Fixes #31858: preserve column custom properties on recursive CSV import
Fixes #31858: preserve column custom properties via targeted removeEx…
Fixes open-metadata#31857, open-metadata#31858: preserve table constr…
Backport #31863 + #32113 to 2.0: keep table constraints and FK edges …