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-2349] [Feature] dbt docs generate --exclude tag:xyz should work while generating catalog #7259

Closed
3 tasks done
sfc-gh-kumaurya opened this issue Apr 3, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@sfc-gh-kumaurya
Copy link

sfc-gh-kumaurya commented Apr 3, 2023

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

This request is about the dbt docs generate to support the --exclude while generating the catalog file.
We can have databases in different environments and we do not want to run the docs generate for those models that are not accessible.
Right now we are getting errors something like this:

  Building catalog
  Encountered an error while generating catalog: Database Error
  002003 (02000): SQL compilation error:
  Database 'some_database_in_diff_env' does not exist or not authorized.

I have seen a few raised issues regarding this. (issue#6014)

Describe alternatives you've considered

dbt docs generate --target <env> --exclude tag:<tag_name> command should not consider those models with tag "tag_name" while generating catalog file.

Who will this benefit?

Everyone who is having databases in multiple environments and just want to generate the dbt docs for some specific models.

Are you interested in contributing this feature?

No response

Anything else?

No response

@sfc-gh-kumaurya sfc-gh-kumaurya added enhancement New feature or request triage labels Apr 3, 2023
@github-actions github-actions bot changed the title [Feature] dbt docs generate --exclude tag:xyz should work while generating catalog [CT-2349] [Feature] dbt docs generate --exclude tag:xyz should work while generating catalog Apr 3, 2023
@jtcohen6
Copy link
Contributor

jtcohen6 commented Apr 3, 2023

@sfc-gh-kumaurya Thanks for opening! As you mention, I believe this request is already captured in:

To keep the conversation centralized, and also aid our tracking/prioritization, I'm going to close this issue as a duplicate, and I'd encourage you to leave your upvotes/comments over there :)

@jtcohen6 jtcohen6 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2023
@jtcohen6 jtcohen6 added duplicate This issue or pull request already exists and removed triage labels Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants