Closed igofunke closed 3 years ago
Thanks for the report!
This is a known issue. inline
models should not be used any longer (at least in part for this reason), they're not documented (though if you have found somewhere, please tell me and I'll remove it!), and the support only remains in the framework for backwards compatibility with (very) old users.
Thanks for the fast answer, @BenBirt! I found it digging in the code. I think they are really useful so it's a pity that they have been deprecated. What is the workaround if I want to get an intermediate model that I don't want to materialise in my warehouse? Splitting in intermediate models not only helps reducing complexity but also helps to test multiple parts better.
Problem
inline
models do not seem to respect referenced dependencies.How to reproduce it
a.sqlx
insidedefinitions
and place the following code.c.sqlx
insidedefinitions
with the following code.b.sqlx
insidedefinitions
with the following definition.Run
dataform run --actions b
. Note the following error.Change
b.sqlx
to read froma.sqlx
Run
dataform run --actions b
. Note the view is created successfully.Expected behaviour
Step 4. should resolve the dependency and bring in the contents of
c.sqlx