dbt-databricks icon indicating copy to clipboard operation
dbt-databricks copied to clipboard

[TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace views/tables in parallel

Open claudiazi opened this issue 1 year ago • 3 comments
trafficstars

Describe the bug

When I'm running dbt run -s model for different models in parallel (and they exist before these dbt commands run) on databricks general compute cluster. Im getting the error: TABLE_OR_VIEW_ALREADY_EXISTS. However, after getting this error, if it is a table, then the table still exists; if it is a view, the view doesnt exist anymore.

Steps To Reproduce

  • tried with dbt-databricks 1.7.14 and 1.7.11. and 1.8.1.
Screenshot 2024-06-05 at 19 50 14

Does anybody face the same situation? Thank you very much!

claudiazi avatar Jun 05 '24 17:06 claudiazi