Skip to content

import: map erwin UDPs and naming conventions; gitignore the schemas - #46

Merged
dbose merged 1 commit into
mainfrom
feat-erwin-udp-naming
Sep 27, 2026
Merged

dbose merged 1 commit into
mainfrom
feat-erwin-udp-naming

Conversation

@dbose

@dbose dbose commented Sep 27, 2026

Copy link
Copy Markdown
Owner

The erwin importer skipped ~17 object types. Validated the requested ones against the real XSD schemas and mapped the two with clean IR homes:

  • UDP_Definition / UDP_Instance -> the IR udp dict (already on entity, attribute, relationship, key_group, domain), which flows to dbt meta:. _read_props now captures a UDP_Instance_Groups nested in an object's ; a def-id index resolves each instance's name (by the name attr, else the UDP_Definition Name, else the raw GUID so nothing is lost).
  • Naming_Options -> ProjectConfig.naming: Case_Conversion_Type UPPER/LOWER map to physical/logical case, honouring Is_Physical_Only/Is_Logical_Only.

Both are additive optional IR fields, so objects without them are unchanged (udp stays None), and the three types no longer emit skip warnings.

Deferred (need a real export XML / no IR home this round): Data_Vault_Object and _Properties (not even in these schemas — a Data Vault edition export; target is LogicalEntity.pattern), and Name_Mapping (source lineage).

CLI 0.6.11.

The erwin importer skipped ~17 object types. Validated the requested ones
against the real XSD schemas and mapped the two with clean IR homes:

- UDP_Definition / UDP_Instance -> the IR udp dict (already on entity,
  attribute, relationship, key_group, domain), which flows to dbt meta:.
  _read_props now captures a UDP_Instance_Groups nested in an object's
  <XxxProps>; a def-id index resolves each instance's name (by the name
  attr, else the UDP_Definition Name, else the raw GUID so nothing is lost).
- Naming_Options -> ProjectConfig.naming: Case_Conversion_Type UPPER/LOWER
  map to physical/logical case, honouring Is_Physical_Only/Is_Logical_Only.

Both are additive optional IR fields, so objects without them are unchanged
(udp stays None), and the three types no longer emit skip warnings.

Deferred (need a real export XML / no IR home this round): Data_Vault_Object
and _Properties (not even in these schemas — a Data Vault edition export;
target is LogicalEntity.pattern), and Name_Mapping (source lineage).

Also gitignore erwin/ — the vendored XSD schemas (4.5MB) were untracked but
committable; they must not ship in a public repo.

CLI 0.6.11.
@dbose
dbose merged commit 38ba5e3 into main Sep 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant