-
Notifications
You must be signed in to change notification settings - Fork 79
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
Incremental model testing results in an error stating incremental model relation does not exist #181
Comments
Same issue here |
Bumping this issue as I'm still having this issue |
Hi all, There is actually a problem with the usage of include_missing_columns in incremental modules. It will be fixed in the next release, probably during this week. Thank you very much for your feedback 👍 |
Please take a look at the latest release (0.4.0) and check if it fixes this issue. Thank you! |
Thanks @psousa50, The test runs now but we are now seeing that no matter if we put "run_as_incremental" in the options or not. It only shows the results of the model as it would in a full refresh test. When running the test using run as incremental, our expect should only include what is added in the incremental step (rather than expecting what is in the full table) as per the docs. When running the test, it fails with a mismatch error showing that the model results has more than just what we expect. When re running the test with the expect including all the rows the table has, it passes (even tho we're running the test with the option "run as incremental"). Is this expected or am i doing something wrong? |
Hi @Rutvijjs , that's odd, the tests are running fine for that option. Could you please post your code here, so that I can take a look? Thanks |
@psousa50 its the same code as in the initial post here. Test:
Model:
|
Hi @Rutvijjs, I should have realised that the code ia the same 🤦♂️, sorry for that. Thank you |
Hi @psousa50 sorry, that was my mistake. I missed adding the dbt_unit_testing. in front of the incremental call in the model in my code. It looks good now. Thank you for the help |
Hello,
I'm trying to test an incremental model in our project but while running the tests i'm getting a "relation incremental_model__ does not exist" error. Has anyone faced this?
dbt version is 0.3.2 (but 0.3.3 also results in the same error without the trailing underscores)
Here is my test:
model is as follows:
error is as follows:
Database Error in test test_check_incremental_logic (tests/test_check_incremental_logic.sql) 20:23:56 relation "incremental_model__" does not exist 20:23:56 LINE 65: select max(modified_on) from "incremental_model__"
The text was updated successfully, but these errors were encountered: