-
Notifications
You must be signed in to change notification settings - Fork 234
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
[CT-622] TempTableAlreadyExistsException: Temporary view already exists #350
Comments
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
something similar is happening to me, did you resolve it? @phillem15 |
Hi @phillem15, @InbarShirizly - if you are targeting Databricks on dbt Cloud, the best is to use the Which means that this should be solved not on I'm closing this for now (until we hear from Spark users). |
hi @Fleid, spark users here, since still not fixed on |
We really should fix this issue in dbt-spark because dbt-databricks continues to have dependencies to dbt-spark. They call the create temporary view macro themselves and so the same issue continues to present itself even for dbt-databricks users. |
pinging @dataders for help |
also @colin-rogers-dbt. apologies for pinging 3 maintainers. |
Re-opening as this does seem applicable to dbt-spark |
I have been having some issues in dbt cloud using the Databricks connection with delta merge as the incremental strategy for one of my models. The issue in the logs is "Error running query: org.apache.spark.sql.catalyst.analysis.TempTableAlreadyExistsException: Temporary view '<model_name>__dbt_tmp' already exists'.
I believe this may be caused by the following line of code saying 'create temporary view' rather than 'create or replace temporary view'. I have only been able to re-create this issue when running a different job on the same model. For example, we run a separate job instance in dbt cloud for hotfixes, rather than a full job run.
dbt-spark/dbt/include/spark/macros/adapters.sql
Line 126 in f03d217
The text was updated successfully, but these errors were encountered: