-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ingestion mode annotation (#359)
* feat: Add ingestion mode annotation * remove unused import * add doc * fix * add filter * fix * fix comment --------- Co-authored-by: Jesse Jia <[email protected]>
- Loading branch information
1 parent
0ebf2ce
commit c08c8c0
Showing
7 changed files
with
94 additions
and
4 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
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
41 changes: 41 additions & 0 deletions
41
...s-schema/src/main/pegasus/com/linkedin/metadata/annotations/AspectIngestionAnnotation.pdl
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,41 @@ | ||
namespace com.linkedin.metadata.annotations | ||
|
||
record AspectIngestionAnnotation { | ||
|
||
/** | ||
* Ingestion Mode applied this aspect. This can be overridden by IngestionMode set in (union) MCE. | ||
*/ | ||
mode: optional enum Mode { | ||
/** | ||
* Skip any check in data access layer. Update the aspect in database irrespectively. | ||
*/ | ||
FORCE_UPDATE | ||
|
||
/** | ||
* Honor all existing checks in data access layer. | ||
*/ | ||
DEFAULT | ||
} | ||
|
||
/** | ||
* The FQCN of the URN that identifies this entity. The ingestion mode will be applied to the aspect associated with this entity. | ||
*/ | ||
urn: optional string | ||
|
||
/** | ||
* Filter on the URN so that this ingestion mode is only applicable to a subset of entities. | ||
*/ | ||
filter: optional array[record UrnFilter { | ||
|
||
/** | ||
* Path extracted by UrnPathExtractor | ||
* https://github.com/linkedin/datahub-gma/blob/master/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/scsi/UrnPathExtractor.java | ||
*/ | ||
path: optional string, | ||
|
||
/** | ||
* The target value lead to by by the path. | ||
*/ | ||
value: optional string | ||
}] | ||
} |
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