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

Conflicting generated query names in BQ merge statements #914

Closed
lewish opened this issue Aug 8, 2018 · 0 comments
Closed

Conflicting generated query names in BQ merge statements #914

lewish opened this issue Aug 8, 2018 · 0 comments

Comments

@lewish
Copy link
Contributor

lewish commented Aug 8, 2018

Issue

Conflicting generated query names in BQ merge statements

Issue description

BigQuery merge statements that are generated for incremental tables use SOURCE and DEST as the names of the internal select queries. These are fairly generic, and if a user provide model select statement references a field with a name of "source" or "dest", the users query will not behave as expected.

I propose changing these references to something far more unique and unlikely to conflict with users queries, such as DBT_INTERNAL_DEST and DBT_INTERNAL_SOURCE.

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