You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I build the snapshot in version 1.5, then it is built in the Dev schema (dbt_) and not the target schema (dbt__snapshots). If I downgrade to version 1.0, and build the snapshot again, it is created in the target schema. I tested this behaviour across multiple versions and looks like the behaviour changed in 1.3 i.e. up until 1.2, the snapshot is created in the target schema.
A workaround is to comment
docs:
show: true
in the snapshot schema file and this allows the snapshot to be built in the target schema in version 1.5.
Expected/Previous Behavior
The snapshot should get built in the correct schema, defined in its yml file.
github-actionsbot
changed the title
Difference snapshot behaviour between version 1.0 and 1.5
[CT-2739] Difference snapshot behaviour between version 1.0 and 1.5
Jun 26, 2023
That is, the yaml config is clobbering the target_schema config set within the snapshot file, and resetting it to the default value.
I'm going to close this as a duplicate, and bump the priority of the linked bug. It's good to know that this is technically a regression from v1.2 → v1.3. At this point, we're most likely to make the fix for the next minor version, and (if the fix is precise enough) patch in one previous minor version.
Is this a regression in a recent version of dbt-core?
Current Behavior
I have this snapshot
and a corresponding schema, snapshot_orders.yml
If I build the snapshot in version 1.5, then it is built in the Dev schema (dbt_) and not the target schema (dbt__snapshots). If I downgrade to version 1.0, and build the snapshot again, it is created in the target schema. I tested this behaviour across multiple versions and looks like the behaviour changed in 1.3 i.e. up until 1.2, the snapshot is created in the target schema.
A workaround is to comment
in the snapshot schema file and this allows the snapshot to be built in the target schema in version 1.5.
Expected/Previous Behavior
The snapshot should get built in the correct schema, defined in its yml file.
Steps To Reproduce
Steps detailed in issue description
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: