mirror of
https://github.com/datahub-project/datahub.git
synced 2026-01-04 22:04:07 +00:00
30 lines
719 B
YAML
30 lines
719 B
YAML
version: 1 # datahub yaml format version
|
|
|
|
# Note: this data contract yaml format is still in development, and will likely
|
|
# change in backwards-incompatible ways in the future.
|
|
|
|
entity: urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)
|
|
freshness:
|
|
type: cron
|
|
cron: 0 7 * * * # 7am daily
|
|
timezone: America/Los_Angeles
|
|
schema:
|
|
type: json-schema
|
|
json-schema:
|
|
properties:
|
|
field_foo:
|
|
type: string
|
|
native_type: VARCHAR(100)
|
|
field_bar:
|
|
type: boolean
|
|
required:
|
|
- field_bar
|
|
data_quality:
|
|
- type: unique
|
|
column: field_foo
|
|
- type: custom_sql
|
|
sql: SELECT COUNT(*) FROM SampleHiveDataset
|
|
operator:
|
|
type: greater_than
|
|
value: 100
|