-
Notifications
You must be signed in to change notification settings - Fork 4
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
Explicitly differentiate dbt unit tests from dbt data tests #382
Comments
Note that we will also need to wait for dbt-athena to cut a release that supports dbt 1.8 before we can use unit tests. Luckily it seems like they plan to do this immediately, and the release is currently targeted for May 9. |
Our old friend #238 bites us again: Unit tests use CTEs to template their fixtures into the compiled test query, meaning that until models with dots in their names are supported by dbt Core, we can't unit test any model that references another model @dfsnow Do you think this is enough of a motivation to boost the priority of #238, or should we backburner unit tests for now? |
Oof. The main problem here is that you can't have periods in CTE names right? That seems more like an Athena/ Either way, let's check-in and see what else is on the list of upcoming stuff before we decide on priority. |
Leaving a status update for the end of the week: I've got branches up for In the process of testing that fix, I discovered that there's another blocker preventing us from moving forward with unit tests. The
The root cause here is that Note that I'm also not sure why array types were being parsed in the particular case of the |
My bug fixes have officially been released as of v1.8.6, so this should be unblocked! |
dbt will soon include unit tests for complex SQL logic and queries. We should absolutely use these and should also attempt to differentiate tests on raw data (
test_qc_
tests) from tests related to logic (tests for joins). We could do this via tagging.We should also revisit our testing docs to clarify the ways our unit tests are written and run once we have a better idea of what they'll look like. See this comment for some ideas: #432 (comment)
The text was updated successfully, but these errors were encountered: