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

Support models with same names across different packages #1502

Closed
cmcarthur opened this issue Jun 4, 2019 · 1 comment
Closed

Support models with same names across different packages #1502

cmcarthur opened this issue Jun 4, 2019 · 1 comment

Comments

@cmcarthur
Copy link
Member

cmcarthur commented Jun 4, 2019

Today, model namespacing looks different than macro namespacing. When calling macros, there's a notion of precedence. So, {{ mymacro() }} will search:

  • First, in the local package
  • Then, in the "global" package (includes in dbt repo)
  • Then, package-specific lookups if package.mymacro syntax is used

We can / should use a similar notion of namespace precedence with models. This would let us support multiple models of the same name in packages, allowing us to generate docs for projects built into different namespaces with overlapping model names.

@cmcarthur cmcarthur added this to the Louisa May Alcott milestone Jun 11, 2019
@drewbanin drewbanin removed this from the Louisa May Alcott milestone Aug 7, 2019
@drewbanin
Copy link
Contributor

closing in favor of the discussion in #1269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants