-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Is this a new bug in dbt-core?
- I believe this is a new bug in dbt-core
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When applying schema
config to a snapshot, the resulting build is not influenced. Using target_schema
config gives the expected result.
Expected Behavior
Customize the build location of snapshots by providing schema
config as illustrated in documentation.
“Standard schema and database configs supported: Snapshots will now be consistent with other dbt resource types. You can specify where environment-aware snapshots should be stored.” source
"Developers can still set a custom location with schema and database configs, consistent with other resource types."
(source)
Example config in docs
Configuring snapshots
Steps To Reproduce
Config
snapshots:
- name: snapshot__dummy_source
relation: source('dummy_source','dummy_source')
config:
schema: dbt_tmull_snapshots
strategy: timestamp
unique_key: id
updated_at: load_ts
Result
14:22:43 On snapshot.dbtlabs_treven_snowflake.snapshot__dummy_source: create or replace transient table TREVEN_SANDBOX.snapshots.snapshot__dummy_source
Config
snapshots:
- name: snapshot__dummy_source
relation: source('dummy_source','dummy_source')
config:
target_schema: dbt_tmull_snapshots
strategy: timestamp
unique_key: id
updated_at: load_ts
Result
14:24:03 On snapshot.dbtlabs_treven_snowflake.snapshot__dummy_source: create or replace transient table TREVEN_SANDBOX.dbt_tmull_snapshots.snapshot__dummy_source
Relevant log output
Environment
- OS: MacOS 15.6.1
- Python: 3.9.6
- dbt: 1.10.13
Initially discovered in dbt platform project, reproduced results in core project.
Which database adapter are you using with dbt?
snowflake
Additional Context
No response