-
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
[Bug] Unit tests don't recognize snapshots with aliases #11026
Comments
Thanks for opening this @gnilrets! I see what you are saying. See below for a reproducible example ("reprex").
|
The bug was fixed with the release of dbt-core 1.8.6, so the solution in this specific case would be to upgrade dbt. |
Is this a new bug in dbt-core?
Current Behavior
I have a snapshot with an alias defined. When running the unit test, I get SQL compilation error:
Snapshot config:
The aliased name of my snapshot is called
ASSEMBLY_COMPONENTS
. If I reconfigure my snapshot to not use an alias, I do not get this error (but I don't want to have to rename the tables for all of my snapshots).Expected Behavior
dbt should be able to run unit tests on snapshots with aliases.
Steps To Reproduce
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: