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
github-actionsbot
changed the title
[Bug] A snapshot block with no name fails without providing the offending file path
[CT-3359] [Bug] A snapshot block with no name fails without providing the offending file path
Nov 8, 2023
In an ideal world, you could freewheel and the dbt error messages would give the same experience as bumper bowling and help you knock down the pins build your snapshot. 🎳
I've added your suggested syntax to the acceptance criteria for this preexisting issue:
Is this a new bug in dbt-core?
Current Behavior
I was testing some snapshot behaviour and freewheeled the first bit:
before remembering that there was a chunk of config I needed to copy-paste, so I went and grabbed that from the docs and wound up with:
I added some other sql model and yaml files, and then tried to do a
dbt run
, where I got this error:I couldn't work out what was missing, and spent 10mins doing a global search for
name
and deleting files to try and track down the issue.It turns out that I didn't provide a name for the snapshot.
Expected Behavior
The error message to indicate where the snapshot was missing.
Minimum:
Ideally:
Better still:
In dbt v2, let's make snapshots behave like every other node type, with only one per file and no opening/closing snapshot blocks.
Steps To Reproduce
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: