Skip to content

Commit bc60eaa

Browse files
Add Tags to Semantic Layer Saved Queries
Title says it all. Linked PRs: * the starting point at [dbt-semantic-interfaces](https://github.com/dbt-labs/dbt-semantic-interfaces/pull/366/files) * [dbt-core](dbt-labs/dbt-core#10987) * [schemas.dbt.com](dbt-labs/schemas.getdbt.com#75) Example of how this would look in an actual saved query in a yml file: ``` saved_queries: - name: with_list_tags_v2 tags: ['tag_b', 'tag_d', 'tag_a'] description: New customer orders by name and time query_params: metrics: - orders group_by: - Dimension('customer__customer_name') - TimeDimension('metric_time', 'day') where: - "{{ Dimension('customer__customer_type') }} = 'new'" exports: - name: new_customer_orders_table config: export_as: table - name: new_customer_orders_view config: export_as: view alias: new_customer_orders_export_alias testing: "what" breaking: 'break it now' ```
1 parent 1dfd5cb commit bc60eaa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

schemas/latest/dbt_yml_files-latest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,19 @@
524524
"additionalProperties": false
525525
}
526526
},
527+
"tags": {
528+
"anyOf": [
529+
{
530+
"type": "array",
531+
"items": {
532+
"type": "string"
533+
}
534+
},
535+
{
536+
"type": "string"
537+
}
538+
]
539+
},
527540
"config": {
528541
"type": "object",
529542
"properties": {

0 commit comments

Comments
 (0)