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

Match models whose name contains dots #185

Merged

Conversation

monti-python
Copy link
Contributor

resolves #184

Description

In our dbt project we are managing multiple schemas. We are namespacing the models with the standard SQL syntax <schema>.<relation>.sql and following this approach. It works quite well for the most part, however models with dots don't show up in the graphs on the generated docs

Checklist

  • I have signed the CLA
  • I have generated docs locally, and this change appears to resolve the stated issue
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label Apr 13, 2021
@monti-python monti-python marked this pull request as draft April 13, 2021 09:16
@monti-python monti-python marked this pull request as ready for review April 13, 2021 10:06
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monti-python I feel similarly about this as I do about the related issues/PRs: All in favor, and even more eager to create more consistency and test coverage for this (previously-not-so-documented) feature :)

I'm having trouble replicating the specific issue you describe in the PR description. When I build docs locally, whether from this PR or from the head branch, I see all dot-named resources show up in the DAG viz—but when I focus/select a node with dots in its name, the selection clears all nodes from view.

Funny enough, the only resource type this does seem to work fine for is exposures:

Screen Shot 2021-04-20 at 3 10 04 PM

It's possible I was missing something when testing locally.

CHANGELOG.md Show resolved Hide resolved
@jtcohen6 jtcohen6 merged commit 5725c0b into dbt-labs:master Apr 28, 2021
@monti-python monti-python deleted the feature/support_dots_in_model_names branch April 28, 2021 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support dots in model names
2 participants