Skip to content

Commit

Permalink
Merge pull request #155 from dbt-labs/court/sl-updates
Browse files Browse the repository at this point in the history
Support new semantic layer features
  • Loading branch information
courtneyholcomb authored Aug 16, 2024
2 parents 21fa5f6 + f1995ed commit 9cac6e6
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions schemas/latest/dbt_yml_files-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,21 @@
"label": {
"type": "string"
},
"time_granularity": {
"enum": [
"nanosecond",
"microsecond",
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
]
},
"type_params": {
"type": "object"
}
Expand Down Expand Up @@ -415,6 +430,18 @@
"$ref": "#/$defs/data_tests"
}
},
"time_spine": {
"type": "object",
"required": [
"standard_granularity_column"
],
"properties": {
"standard_granularity_column": {
"type": "string"
}
},
"additionalProperties": false
},
"versions": {
"type": "array",
"items": {
Expand Down Expand Up @@ -1076,6 +1103,21 @@
"data_type": {
"type": "string"
},
"granularity": {
"enum": [
"nanosecond",
"microsecond",
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
]
},
"meta": {
"type": "object"
},
Expand Down Expand Up @@ -1194,8 +1236,45 @@
"cumulative_metric_type_params": {
"type": "object",
"properties": {
"cumulative_type_params": {
"type": "object",
"properties": {
"window": {
"type": "string"
},
"grain_to_date": {
"enum": [
"nanosecond",
"microsecond",
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
]
},
"period_agg": {
"enum": [
"first",
"last",
"average"
]
}
},
"additionalProperties": false
},
"grain_to_date": {
"enum": [
"nanosecond",
"microsecond",
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
Expand Down Expand Up @@ -1401,11 +1480,23 @@
"properties": {
"time_granularity": {
"enum": [
"NANOSECOND",
"MICROSECOND",
"MILLISECOND",
"SECOND",
"MINUTE",
"HOUR",
"DAY",
"WEEK",
"MONTH",
"QUARTER",
"YEAR",
"nanosecond",
"microsecond",
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
Expand Down

0 comments on commit 9cac6e6

Please sign in to comment.