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

Prefix temp relations with model name instead of alias (#1321) #1342

Merged
merged 1 commit into from
Mar 8, 2019

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Mar 8, 2019

Fixes #1321

Change everywhere we make a temp relation named like {???}_dbt_, to use name instead of alias. This should avoid collisions when multiple models with the same aliases in different schemas are building at the same time, because model names are required to be unique.

I'm struggling to come up with a good way to reliably test this, but existing tests didn't appear to break.

Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

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

LGTM!

@beckjake beckjake merged commit a7bfae0 into dev/wilt-chamberlain Mar 8, 2019
@beckjake beckjake deleted the fix/temp-relations-from-modelname branch March 8, 2019 13:17
@fetanchaud
Copy link

Great, Thank you !

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

Successfully merging this pull request may close these issues.

3 participants