Skip to content

Snapshot Configuration in dbt_project.yml and resource configuration yml showing errors #618

@aamirparkar

Description

@aamirparkar

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.

Image Image

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

  1. Open this workspace
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiscrepancydiscrepancy between the dbt Fusion Engine and dbt Corehas-reproHas a reproducible example

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions