Kasper Ramström
10/25/2023, 12:33 PMdbt_models table meant to continuously add and remove tables? Depending on when we query it during the day sometimes our models are there and sometimes they are completely goneSindre Grindheim
10/25/2023, 2:12 PMKasper Ramström
10/25/2023, 2:27 PMbronze project
• silver project
• gold project
the silver project imports the bronze project and the gold project imports the silver project (and in turn also bronze project)
but it's a one-direction import so the bronze project has no idea of the silver project and gold project and the silver project has no idea of the gold project
we run elementary on-run-end hooks for all three projects towards the same dataset. So my best guess so far is that:
• when we run models in the bronze project the on-run-end hooks will overwrite the dbt_models table with only models from the bronze project
• when we run models in the silver project the on-run-end hooks will overwrite the dbt_models table with only models from the bronze project and silver project
• when we run models in the gold project the on-run-end hooks will overwrite the dbt_models table with only models from the bronze project and silver project and gold project
so depending on which project was run last we wither get all models or only a subset.
It would be nice if there's a solution to this, it's really helpful for us to have everything in the same project (also for our edr reports and monitoring) but we don't want to run everything from the gold projectElla Katz
10/25/2023, 6:25 PMSindre Grindheim
10/26/2023, 6:54 AMElla Katz
10/26/2023, 7:09 AM