-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-173] [Bug] Cannot assign meta configs to snapshotts #4693
Comments
Thanks for reporting this -- there's definitely something odd going on here. From my experiments, it looks like it might work to add a '+' in front of the meta, but I don't think that ought to be necessary. In addition, it ought to work to set meta in a 'config' key of the snapshot yaml, but that also gets the error message. In addition, there's #4459, which means that the meta shows up in the config.meta in the manifest. This looks like a bug that needs to be fixed. |
I believe this was resolved by #4726, which was just included (via backport) in v1.0.5 |
circling back on this one (I posted in slack first but then took a peek here), I just ran into some odd behaviors related to snapshots and meta tags I’ve configured my snapshots to land in a different schema snapshots:
project:
salesforce:
+target_schema: |
{%- if target.name == 'prod' -%}
salesforce
{%- else -%}
{{ target.schema }}
{%- endif -%} and I had some basic docs for my snapshot version: 2
snapshots:
- name: snapshot_salesforce__opportunities
description: daily snapshot of salesforce opportunities, capturing changing dimensions
over time
columns:
- name: opportunity_amount
meta:
sigma_col_format: currency
meta:
sigma_badge: endorsed the introduction of the |
Is there an existing issue for this?
Current Behavior
We use the meta section of models/snapshots within the schema.yml to assign ownership of models:
This would work fine for models but for snapshots you get the error:
As you can see the error is particularly unhelpful in that it does not show which snapshots are failing.
Expected Behavior
We would expect the metadata to be assigned correctly to the snapshot and be made available in the manifest.
Steps To Reproduce
Attempt to
dbt snapshot
when assigning meta data to a snapshot in the schema.ymlRelevant log output
Using snapshots/schema.yml
Returns:
Using snapshots/schema.yml
Returns:
Environment
What database are you using dbt with?
other (mention it in "Additional Context")
Additional Context
Spark
The text was updated successfully, but these errors were encountered: