-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbt docs generate does not add database to tables #2108
Comments
Hi @danielwlogan - are you certain that you were using 0.15.2 when you encountered this issue? I just gave this a spin locally with dbt v0.15.2 and found that the database (project) name from my .yml file was correctly injected into dbt's catalog query. For me, this looks like:
So, dbt is definitely injecting the project id into this query in at least some cases, but it's definitely possible that there's a bug which is impacting your dbt setup. If you can confirm that this occurred on dbt v0.15.2, then we'd certainly be happy to look deeper into it! |
Yes, I can confirm that I am running |
Any progress on this front? |
@danielwlogan great timing! I actually just pulled this up while prioritizing the next release. I did some digging here after I saw your last comment, but I was not able to replicate the behavior you're describing here. I'll revisit this and prioritize it accordingly :) |
Great. Let me know if there is anything else I can provide or help with in any way. |
@danielwlogan I was very puzzled here for a very long time, but I just thought about this issue while reviewing a different bug report! Do you by any chance specify a
If so, is the |
@drewbanin, the answer is yes, we do have the following structure in our schema ymls:
|
Based on what you have suggested, we have pulled the quoting config into Thanks @drewbanin for the tip. |
cool, glad to hear it! I'm going to close this issue as #2188 tracks the actual code change that needs to happen here. This is going to be fixed in the next release of dbt. |
Describe the bug
When running
dbt docs generate
, an error is thrown:However, the dataset YYY does not exist in database XXX. The yml file that describes the source is written such as:
The code that is automatically generated in a
dbt docs generate
call erroneously prefixes the dataset with default database, XXX, found inprofiles.yml
Steps To Reproduce
profiles.yml
dbt docs generate
Expected behavior
The code automatically generated and run when executing a
dbt docs generate
should prefix all calls to a dataset with the correct database as defined in source yml files.Screenshots and log output
Would like to have the last line be:
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Ubuntu 18.04.4 LTS
The output of
python --version
:Python 3.7.4
Additional context
A work around is to change the source ymls from:
to
The text was updated successfully, but these errors were encountered: