forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental
cache_selected_only
config (dbt-labs#5036)
* cache schema for selected models * Create Features-20220316-003847.yaml * rename flag, update postgres adapter rename flag to cache_selected_only, update postgres adapter: function _relations_cache_for_schemas * Update Features-20220316-003847.yaml * added test for cache_selected_only flag * formatted as per pre-commit * Add breaking change note for adapter plugin maintainers * Fix whitespace * Add a test Co-authored-by: karunpoudel-chr <poudel.karun@gmail.com> Co-authored-by: karunpoudel-chr <62040859+karunpoudel@users.noreply.github.com>
- Loading branch information
1 parent
063c0d6
commit 97a52ff
Showing
13 changed files
with
105 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
kind: Breaking Changes | ||
body: 'For adapter plugin maintainers only: Internal adapter methods `set_relations_cache` + `_relations_cache_for_schemas` | ||
each take an additional argument, for use with experimental `CACHE_SELECTED_ONLY` | ||
config' | ||
time: 2022-04-12T15:24:50.159572+02:00 | ||
custom: | ||
Author: karunpoudel | ||
Issue: "4688" | ||
PR: "4860" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kind: Features | ||
body: Add `--cache_selected_only` flag to cache schema object of selected models | ||
only. | ||
time: 2022-03-16T00:38:47.8468296-05:00 | ||
custom: | ||
Author: karunpoudel | ||
Issue: "4688" | ||
PR: "4860" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test/integration/038_caching_tests/models_multi_schemas/another_schema_model.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{ | ||
config( | ||
materialized='table', | ||
schema='another_schema' | ||
) | ||
}} | ||
select 1 as id |
6 changes: 6 additions & 0 deletions
6
test/integration/038_caching_tests/models_multi_schemas/model.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ | ||
config( | ||
materialized='table' | ||
) | ||
}} | ||
select 1 as id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters