Skip to content

Commit 6f65b5c

Browse files
authored
Merge pull request #24 from milsi96/main
Add RetentionTime field
2 parents 37f78ad + 483a9d9 commit 6f65b5c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Constraints:
7373
* `OutputPortType: [String]` the kind of output port: Files, SQL, Events, etc. This should be extensible with other values, like GraphQL or others.
7474
* `CreationDate: [Optional[String]]` when this output port has been created.
7575
* `StartDate: [Optional[String]]` the first business date present in the dataset, leave it empty for events, or we can use some standard semantic like: "-7D, -1Y".
76+
* `RetentionTime: [Optional[String]]` historical depth of data available in the Output Port
7677
* `ProcessDescription: [Option[String]]` what is the underlying process that contributes to generate the data exposed by this output port.
7778
* `DataContract: [Yaml]`: In case something is going to change in this section, it represents a breaking change because the producer is breaking the contract, this will require to create a new version of the data product to keep backward compatibility
7879
* `Schema: [Array[Yaml]]` when it comes to describe a schema we propose to leverage [OpenMetadata specification](https://docs.open-metadata.org/v1.0.0/main-concepts/metadata-standard/schemas/entity/data/table#definitions). Each column can have a tag array, and you can choose between simples LabelTags, ClassificationTags or DescriptiveTags. Here an example of classification Tag https://github.com/open-metadata/OpenMetadata/blob/main/openmetadata-service/src/main/resources/json/data/tags/piiTags.json.

data-product-specification.cue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ import "strings"
8989
outputPortType: string
9090
creationDate?: string | null
9191
startDate?: string | null
92+
retentionTime?: string | null
9293
processDescription?: string | null
9394
dataContract: #DataContract
9495
dataSharingAgreement: #DataSharingAgreement

example.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ components:
7777
outputPortType: SQL
7878
creationDate: 05-04-2022T17:00:00.000Z
7979
startDate:
80+
retentionTime:
8081
processDescription:
8182
dataContract:
8283
schema:

0 commit comments

Comments
 (0)