Enrichment migrator¶
The enrichment migrator package copies asset enrichment from one set of assets to another, usually from one connection to another.
Use cases¶
- Migrate manual enrichment done to one set of data assets to another (for example, when migrating from one data warehouse to another but retaining the same data structures)
Configuration¶
Assets¶
Asset to include in the migration.
- Source: the connection from which to copy asset enrichment.
- Limit to (prefix): the prefix by which to further limit assets within the connection. For example, to limit to only assets in the database
DB1
and schemaSCH2
, you would enterDB1/SCH2
here. - Target database pattern: a regular expression to copy asset enrichment from one source database to one or more target databases. To use this option a source database name should be specified in the
limit to (prefix)
. For example to copy asset enrichment from the databaseDB1
to the databasesDB2
andDB3
, you enterDB1
as theLimit to (prefix)
andDB
. as theTarget database pattern
. - Target: the connection with assets into which to copy the enrichment.
- Fail on errors: whether to fail on any errors related to values being invalid (Yes), or to log such problems as warnings but carry on processing (No).
Attributes¶
-
Limit to: limit the attributes to be migrated from source to target
Only migrate the attributes selected, and ignore any other attributes on the source assets.
Migrate all enrichment from the source assets, except any attributes selected.
-
Attributes: the attributes to include / exclude based on the option selected
-
Limit custom metadata to: limit the custom metadata attributes to be migrated from source to target
Only migrate the custom metadata attributes specified, and ignore any other custom metadata attributes on the source assets.
Migrate all custom metadata enrichment from the source assets, except any attributes selected.
-
Custom metadata: the custom metadata attributes to include / exclude based on the option selected
What it does¶
- Produces a temporary extract file containing all assets that match the specified source criteria, and all enrichment details of those assets that match the specified attribute criteria.
- Replaces the connection
qualifiedName
portion of every source asset with the corresponding connectionqualifiedName
for the target connection. - Loads the transformed file (2) to the target assets in the target connection.
How it works
Runs a search for all assets that match the supplied inputs:
- Only assets in the source connection, whose
qualifiedName
starts with the combination of source connectionqualifiedName
and the supplied qualified name prefix (if any). - Exports a temporary CSV file containing 1 row per matching asset, with potentially all of the following (unless excluded by the attribute criteria):
- system-provided description,
- user-provided description,
- owners,
- assigned terms,
- assigned tags, and
- any custom metadata values.
- Iterates through every row of the CSV file replacing the source connection's
qualifiedName
with the target connection'squalifiedName
. - Loads the resulting CSV back to Atlan, only updating a target asset if it already exists (never creating new assets)