-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(transformers): Add semantics & transform_aspect support in trans…
…formers (#5514) Co-authored-by: MohdSiddique Bagwan <[email protected]> Co-authored-by: Harshal Sheth <[email protected]>
- Loading branch information
1 parent
9434afc
commit 2f65e2f
Showing
22 changed files
with
2,528 additions
and
1,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,203 changes: 1,203 additions & 0 deletions
1,203
metadata-ingestion/docs/transformer/dataset_transformer.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "Introduction" | ||
--- | ||
|
||
# Transformers | ||
|
||
## What’s a transformer? | ||
|
||
Oftentimes we want to modify metadata before it reaches the ingestion sink – for instance, we might want to add custom tags, ownership, properties, or patch some fields. A transformer allows us to do exactly these things. | ||
|
||
Moreover, a transformer allows one to have fine-grained control over the metadata that’s ingested without having to modify the ingestion framework's code yourself. Instead, you can write your own module that can transform metadata events however you like. To include a transformer into a recipe, all that's needed is the name of the transformer as well as any configuration that the transformer needs. | ||
|
||
## Provided transformers | ||
|
||
Aside from the option of writing your own transformer (see below), we provide some simple transformers for the use cases of adding: tags, glossary terms, properties and ownership information. | ||
|
||
DataHub provided transformers for dataset are: | ||
- [Simple Add Dataset ownership](./dataset_transformer.md#simple-add-dataset-ownership) | ||
- [Pattern Add Dataset ownership](./dataset_transformer.md#pattern-add-dataset-ownership) | ||
- [Simple Remove Dataset ownership](./dataset_transformer.md#simple-remove-dataset-ownership) | ||
- [Mark Dataset Status](./dataset_transformer.md#mark-dataset-status) | ||
- [Simple Add Dataset globalTags](./dataset_transformer.md#simple-add-dataset-globaltags) | ||
- [Pattern Add Dataset globalTags](./dataset_transformer.md#pattern-add-dataset-globaltags) | ||
- [Add Dataset globalTags](./dataset_transformer.md#add-dataset-globaltags) | ||
- [Set Dataset browsePath](./dataset_transformer.md#set-dataset-browsepath) | ||
- [Simple Add Dataset glossaryTerms](./dataset_transformer.md#simple-add-dataset-glossaryterms) | ||
- [Pattern Add Dataset glossaryTerms](./dataset_transformer.md#pattern-add-dataset-glossaryterms) | ||
- [Pattern Add Dataset Schema Field glossaryTerms](./dataset_transformer.md#pattern-add-dataset-schema-field-glossaryterms) | ||
- [Pattern Add Dataset Schema Field globalTags](./dataset_transformer.md#pattern-add-dataset-schema-field-globaltags) | ||
- [Simple Add Dataset datasetProperties](./dataset_transformer.md#simple-add-dataset-datasetproperties) | ||
- [Add Dataset datasetProperties](./dataset_transformer.md#add-dataset-datasetproperties) | ||
- [Simple Add Dataset domains](./dataset_transformer.md#simple-add-dataset-domains) | ||
- [Pattern Add Dataset domains](./dataset_transformer.md#pattern-add-dataset-domains) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.