-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] can't unit test a model that depends on an ephemeral model #9686
Comments
Suggested Approach:
Downsides:
|
I'm experiencing something similar not just with ephemeral models but also sources. |
That's surprising to me @kd-nishanth - you should be able to unit test a model that depends on a source - would you be able to share an example of what your unit test definition looks like and what error message you're seeing? |
@graciegoheen sure I have built a dbt model (say
Additional Information:
I'm happy to share more and/or contribute to resolving this ticket. |
^Moving this conversation over to a new issue, as I believe it's unrelated to the ephemeral model bug -> #9851 |
We just implemented a new format for unit tests Here are the docs Note that this does have the caveat that when using I'm going to close this for now. If there's a desire to be able to unit test a model that depends on an ephemeral model using the other formats ( |
Is this a new bug in dbt-core?
Current Behavior
I want to unit test a model that depends on an ephemeral model.
When I define and execute the unit test, I get the following error:
Expected Behavior
I should be able to unit test a model that depends on an ephemeral model:
Steps To Reproduce
I have a model
dim_wizards
:This model depends on
stg_wizards
which IS AN EPHEMERAL MODEL:I try to define a unit test on
dim_wizards
:My unit test fails:
The text was updated successfully, but these errors were encountered: