-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dbt fails if destination schema contains a LOCAL TEMPORARY in Snowflake #1869
Comments
Thanks for making this report @danieldicker! Adding |
That makes sense to me! |
Describe the bug
dbt fails to compile or run when the destination schema contains a LOCAL TEMPORARY table
Steps To Reproduce
Run
dbt compile
while someone else is runningdbt run
Expected behavior
No error occurs.
Screenshots and log output
System information
Database: Snowflake
The output of
dbt --version
: 0.14.3The operating system you're using: OS X
The output of
python --version
: 3.7Additional context
While we don't have any tables explicitly specified as LOCAL TEMPORARY, we believe this is happening because other processes are running dbt and LOCAL TEMPORARY tables are being created in the process of merging or replacing the tables. As such, the specific tables that throw the error are different each time we encounter this error. When we look in the information schema after getting this error, the LOCAL TEMPORARY tables reported in the error text are shown as regular tables.
Similar to the fix for #1431, we created a fork and added a
LOCAL TEMPORARY
relation type which seems to have fixed the issue. We wanted to report the issue here as well.The text was updated successfully, but these errors were encountered: