dbt-core
dbt-core copied to clipboard
[SL] Add `cache` configuration to `Export` configurations of `SavedQuery`
Housekeeping
- [X] I am a maintainer of dbt-core
Short description
The SavedQuery config is getting a new top level property, cache. This is to to enable semantic layer implementations to setup caching as they see fit. This is being added to the dbt-semantic-interfaces protocol definitions in https://github.com/dbt-labs/dbt-semantic-interfaces/issues/252. The value for the cache key is an object with one attribute (currently) enabled which is either true or false.
Acceptance criteria
cachecan optionally be specified in theconfigofSavedQuerys- if
cacheis specified forSavedQuerys in a dbt_project.toml, it is properly inherited - if a
cacheisn't specified, a defaultcacheobject is still created withenabled = false
Suggested Tests
cachecan be specified in aSavedQueryconfigcachecan be specified for aSavedQueryconfig via thedbt_project.toml- the
cachedefined in yaml for theSavedQueryoverrides settings from thedbt_project.toml - if no
cacheis specified, a default one is supplied withenabled = false
Impact to Other Teams
Affects the Cloud Artifacts team as new properties will be present Affects the Semantic Layer team as they need this to be able to implement functionality
Will backports be required?
No
Context
No response