[CT-1544] [Bug] Should get_catalog()
respect an overriden source()
builtin?
#6308
Closed
2 tasks done
Is this a new bug in dbt-core?
Current Behavior
If we have an overriden
source()
function - should theget_catalog()
macros (Snowflake example) respect it? Currently it does not.Expected Behavior
Catalog introspection should respect an overriden source() function.
Steps To Reproduce
Setup our project:
Run and inspect generated queries:
Now let's try a docs generate:
Docs generate tries to look up the
jyeo
database instead of our business logic specified in the overridensource()
macro. Since thejyeo
database does not exists - we error.Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
I did a full walkthrough in this loom https://www.loom.com/share/c87391ba33f14304b23ff012efb71f0c on this issue but I think some users are convinced that the catalog queries should respect the business logic we put into the
source()
macro.The text was updated successfully, but these errors were encountered: