Skip to content
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

[CT-1909] [CT-1903] Unable to generate docs from dbt core #281

Closed
2 tasks done
Tracked by #742
jaswanth-gaddipati opened this issue Jan 25, 2023 · 4 comments
Closed
2 tasks done
Tracked by #742
Labels
bug Something isn't working ra3_node issues relating to ra3 node support

Comments

@jaswanth-gaddipati
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

dbt docs generate
throwing error
cross-db references allowed only in Redshift RA3.

but dbt compile is working properly

Expected Behavior

dbt docs generate should generate docs

Steps To Reproduce

define sources across dbs in redshift in dbt project
develop and execute models in a particular database
run dbt docs generate

Relevant log output

No response

Environment

- OS: windows
- Python:3.9
- dbt: 1.3.2

Which database adapter are you using with dbt?

No response

Additional Context

No response

@jaswanth-gaddipati jaswanth-gaddipati added bug Something isn't working triage labels Jan 25, 2023
@github-actions github-actions bot changed the title Unable to generate docs from dbt core [CT-1903] Unable to generate docs from dbt core Jan 25, 2023
@dbeatty10 dbeatty10 transferred this issue from dbt-labs/dbt-core Jan 26, 2023
@github-actions github-actions bot changed the title [CT-1903] Unable to generate docs from dbt core [CT-1909] [CT-1903] Unable to generate docs from dbt core Jan 26, 2023
@dbeatty10
Copy link
Contributor

Thanks for opening this issue @jaswanth-gaddipati !

Could you share more detail about the error it is throwing? i.e., could you share the relevant output and/or logs within logs/dbt.log?

@dbeatty10
Copy link
Contributor

I did some more research @jaswanth-gaddipati. I see now that you mentioned precise error was something like:

Cross-db references allowed only in Redshift RA3.* node. Got X

Could you try adding ra3_node to your profiles.yml configuration like below (and demonstrated here and here)?

  target: dev
  outputs:
    dev:
      type: redshift
      ...
      ra3_node: true # enables cross-database sources

Apparently, this configuration should enable cross-database sources if you are not actually using RA3 nodes.

One known problem is that dbt Cloud users do not have access to custom profiles.yml fields today, so this option won't be a possibility if you are a dbt Cloud user.

@jaswanth-gaddipati
Copy link
Author

jaswanth-gaddipati commented Jan 30, 2023

Hi @dbeatty10

Thank you. I am able to generate docs.

One more question can we create models in redshift across DBs as it has cross db limitation.

@dbeatty10
Copy link
Contributor

Thank you. I am able to generate docs.

🙌 Awesome @jaswanth-gaddipati !

can we create models in redshift across DBs

I don't think so due to the known limitations. I'm guessing you would need separate dbt projects per database. But if you discover that it does work somehow, please let us know!

Since generating the docs is working for you now, I'm going to close this issue. You can open a new one if you run into any bugs or have any feature requests.

@dataders dataders added the ra3_node issues relating to ra3 node support label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ra3_node issues relating to ra3 node support
Projects
None yet
Development

No branches or pull requests

3 participants