Q&A-2Define stable identities for catalog resources.
Answer
Core answer, first 90 seconds. "Stable identity" means the key that lineage, ownership, tags and access policies hang off does not change when the human-readable name does. So I split identity in two: an immutable surrogate key minted at first registration, and a path that is just an attribute of that key. Everything downstream (lineage edges, PII tags, owners, grants) keys on the surrogate. The path is resolved through an alias table.
Assumptions I'd state up front: a catalog federating several platforms (Snowflake, BigQuery, S3/Glue, Kafka), multi-tenant, with consumers that persist references. BI dashboards, dbt models, feature stores. If it's a single-tenant index over one platform with rare renames, the alias layer is overhead and I'd skip it.
Why the platform URN alone isn't enough. Most catalogs embed the path inside the identifier, so the identifier is not actually stable across a rename:
| System | Identity form | What moves on rename |
|---|---|---|
| DataHub | urn:li:dataset:(urn:li:dataPlatform:snowflake,analytics.public.orders,PROD) | the name segment, so the URN changes |
| Unity Catalog | catalog.schema.table | any of the three levels |
| AWS Glue | arn:aws:glue:us-east-1:123456789012:table/analytics/orders | database and table segments |
| OpenMetadata | service.database.schema.table FQN | the path |
That's the mechanism to call out: the URN is path-derived, so you add a surrogate layer above it rather than trusting the URN as the key.
Rename trace. Table registered as surrogate ds-7f3a, path analytics.public.orders, URN urn:li:dataset:(...,analytics.public.orders,PROD). Renamed to analytics.public.fct_orders:
- Catalog emits a rename event.
- Alias row written:
analytics.public.orders -> ds-7f3a,valid_to = now. - New URN minted for the new path; both URNs map to
ds-7f3a. - Lineage, tags and ownership keyed on
ds-7f3a: no split. - A dashboard still holding the old URN resolves through the alias table.
Failure modes, with detection. No alias table: the lineage graph splits into two nodes, PII tags and ownership don't carry, and downstream impact is double-counted. Detect by counting datasets with identical schema hash and overlapping lineage. Tenant collision: two accounts both hold analytics.public.orders; if the key omits account and region you conflate them and can grant access to the wrong tenant's data. Enforce a uniqueness constraint on (platform, account, region, path). Case: Snowflake stores unquoted identifiers uppercase, so inconsistent case-folding yields ORDERS and orders as two entities; detect by duplicate count after case-fold. Restore: restoring a backup re-registers tables with fresh surrogate IDs, leaving two live entities for one physical table; detect by the same storage location appearing under two surrogates.
Trade-offs. Path-as-key is readable and needs no resolution service, but a rename creates a new entity: acceptable only for low-churn, single-tenant catalogs. Surrogate-only is stable but every consumer needs a resolution call and it breaks when a source system only knows the path. Hybrid plus alias table is what I'd pick; the cost is an extra write path and an alias merge policy, when a path is reused by a genuinely different table you must expire the alias, not silently resolve it to the old surrogate.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.