Closed niclas-roos closed 4 years ago
:oof:
, this is indeed a regression.
I checked it out, and it turns out the issue is in utils — fix is here
Woohoo, my first bug!
Thanks for the fix! Should I close this?
When we merge that PR, this issue will magically close itself :)
Also — first bug? This was an incredibly useful report, I assumed you had done this plenty of times!
Describe the bug
I'm trying to use generate_source in dbt cloud, running it in the prompt, to generate_source for my raw database in Snowflake, but it seems to be overridden by the default target database, analytics.
Steps to reproduce
I'm running the following script in the prompt:
dbt run-operation generate_source --args '{schema_name: BINGADS, database_name: raw}'
I've installed packages using
dbt deps
Expected results
Actual results
Screenshots and log output
Log output:
On macro_generate_source: /* {"app": "dbt", "dbt_version": "0.18.0", "profile_name": "user", "target_name": "default", "connection_name": "macro_generate_source"} */
Part of log output showing the compiled SQL:
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
The output of
python --version
:Additional context
Are you interested in contributing the fix?