-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Describe the bug
Failing Snapshot build and getting issues with schema property and resource paths for snapshots
The reference provided in the error suggestions dbt_project-latest.json does not have the schema property in the file.
I also get a warning sometimes that I need strategy and uniqu_key for timestamps. Think the resource yaml interprets the location as snapshots/snapshot_name and not snapshots/target_folder/snapshot_name.
In the end, it results in failure since the target db and target schema are not picked up correctly.
What version of dbt Fusion is this bug in? (find out by running dbt --version)
dbt-fusion 2.0.0-preview.5
Is this a discrepancy between the dbt Fusion Engine and dbt Core? Check one.
Have not used dbt core before. So don't know.
- YES
- NO
To Reproduce
- Open this workspace
- Follow the instructions in the README
Or:
dbt project configuration:
snapshots:
project_name:
target_folder:
+tags:
- "tag_name"
+database: target_db_name
+schema: target_schema_name
yml in my resource>>target_folder>>target_snapshots.yml
snapshots:
- name: snapshot_name
description:
config:
strategy: timestamp
unique_key: key
updated_at: last_run_timestamp
Expected Behaviour
dbt snapshot should create/update table in target_schema_name from the config file
Operating System and CPU Type (please complete the following information):
Windows