Yunus Emre Gündüz
03/13/2025, 9:01 AMedr report others fail to do. When I check out the errors, I see the following situation:
If the flow has been run for the first time and have errors while running dbt build (could be a test failure or a missing model causing other models to fail), then no object is created under YOUR_SCHEMA_ELEMENTARY schema. This causes <YOUR_SCHEMA>_ELEMENTARY.ELEMENTARY_RESULTS not found error. This is the case where I tried jaffle-shop example from dbt itself and it failed for the first time.
I am not sure if I detected the root cause of the problem correctly. If this is not something expected I will try to find out the real problem.Noya Offer
03/13/2025, 9:07 AMdbt run --select elementary before dbt build?
If this doesn't help, can you please share the error you're receiving? 🙂Yunus Emre Gündüz
03/13/2025, 9:13 AMdbt build runs all of the models and tests I did not run elementary models as a prerequisite. It worked for a very basic dbt project.Yunus Emre Gündüz
03/13/2025, 9:14 AMedr report to run without raising errors.Noya Offer
03/13/2025, 9:16 AMYunus Emre Gündüz
03/13/2025, 9:21 AMdbt build also runs dbt run --select elementary under the hood and the elementary models are updated when dbt build finished, then there shouldn't be no problem?Yunus Emre Gündüz
03/13/2025, 9:21 AMYunus Emre Gündüz
03/13/2025, 9:25 AMNoya Offer
03/13/2025, 9:27 AMdbt build is failing before the on-run-hooks that create them. Running them explicitly once should solve this. Can you try and let me know if it helps?
Taking a look at the error logs as well to understand better 🙌Yunus Emre Gündüz
03/13/2025, 9:28 AMYunus Emre Gündüz
03/13/2025, 9:29 AMYunus Emre Gündüz
03/13/2025, 11:04 AMdbt run -s elementary . I run my dbt projects using a custom script. The script runs the followings in order:
1. dbt deps
2. dbt compile
3. dbt build
4. edr report
I wonder if there is any downside of running dbt run -s elementary between steps 2 and 3 each time I start running the project?Yunus Emre Gündüz
03/13/2025, 11:06 AMNoya Offer
03/13/2025, 12:38 PMYunus Emre Gündüz
03/13/2025, 12:39 PMNoya Offer
03/13/2025, 12:40 PM