Delta Live Table : [TABLE_OR_VIEW_ALREADY_EXISTS] Cannot create table or view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 10:40 AM
Hi,
I have a delta live table workflow with storage enabled for cloud storage to a blob store.
Syntax of bronze table in notebook
===
===
Once delta live table runs it creates tables in blob storage and also with metadata in the hivemetastore under a specified schema.
Issue: When I start or run the pipeline update for the second time it failed with below error
====
org.apache.spark.sql.catalyst.analysis.TableAlreadyExistsException: [TABLE_OR_VIEW_ALREADY_EXISTS] Cannot create table or view `tenant_id`.`table_bronze` because it already exists. Choose a different name, drop or replace the existing object, add the IF NOT EXISTS clause to tolerate pre-existing objects, or add the OR REFRESH clause to refresh the existing streaming table.
====
As a work around, first I delete the table from hivemetastore and then I Start pipeline update. Then it runs successfully.
Can anyone help me understand this issue.
Thanks and regards,
Syed Saqib
- Labels:
-
Workflows