<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72053#M7401</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106284"&gt;@claudiazi&lt;/a&gt;&amp;nbsp;Are you the owner of the view?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2024 14:10:23 GMT</pubDate>
    <dc:creator>raphaelblg</dc:creator>
    <dc:date>2024-06-07T14:10:23Z</dc:date>
    <item>
      <title>[TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view</title>
      <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/71787#M7398</link>
      <description>&lt;P&gt;When I'm running `dbt run -s model` for different models in parallel on databricks general compute cluster. Im getting the error: TABLE_OR_VIEW_ALREADY_EXISTS. Also, at the same time, the view/table was not created at all.&lt;/P&gt;&lt;P&gt;But I run them in sequence, then no such error will show.&lt;/P&gt;&lt;P&gt;Any idea what is causing this?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 17:24:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/71787#M7398</guid>
      <dc:creator>claudiazi</dc:creator>
      <dc:date>2024-06-05T17:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: [TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view</title>
      <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/71949#M7399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106284"&gt;@claudiazi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It's hard to determine the exact root cause of the issue, but there's a known issue that could lead to the same error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you check &lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-create-table-using.html#parameters" target="_self"&gt;CREATE TABLE [USING] - Parameters&lt;/A&gt;. You'll be able to see the following note:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Databricks strongly recommends using&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;REPLACE&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;instead of dropping and re-creating Delta Lake tables.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is because the pattern of deleting and creating Delta Lake tables without the REPLACE clause might not clean-up all the metadata files right away.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 19:54:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/71949#M7399</guid>
      <dc:creator>raphaelblg</dc:creator>
      <dc:date>2024-06-06T19:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: [TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view</title>
      <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72038#M7400</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97998"&gt;@raphaelblg&lt;/a&gt;&amp;nbsp;thaanks a lot for your reply! However the command were `create or replace view/table` Thats why I'm very surprised that we are getting this error message&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 13:34:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72038#M7400</guid>
      <dc:creator>claudiazi</dc:creator>
      <dc:date>2024-06-07T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: [TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view</title>
      <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72053#M7401</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106284"&gt;@claudiazi&lt;/a&gt;&amp;nbsp;Are you the owner of the view?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 14:10:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72053#M7401</guid>
      <dc:creator>raphaelblg</dc:creator>
      <dc:date>2024-06-07T14:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: [TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view</title>
      <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72063#M7402</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97998"&gt;@raphaelblg&lt;/a&gt;&amp;nbsp;yes! Im the owner. However, these views are inside the hive_metastore catalog. Could it be the reason?&lt;BR /&gt;Many thaaanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 14:44:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72063#M7402</guid>
      <dc:creator>claudiazi</dc:creator>
      <dc:date>2024-06-07T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: [TABLE_OR_VIEW_ALREADY_EXISTS] when running create or replace view</title>
      <link>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72066#M7403</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106284"&gt;@claudiazi&lt;/a&gt;&amp;nbsp;from what we've discussed so far I see no reason for the failure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if this error is something the community can help with but maybe opening a support ticket through &lt;A href="https://help.databricks.com/s/" target="_blank"&gt;https://help.databricks.com/s/&lt;/A&gt;&amp;nbsp;might be a good idea.&lt;/P&gt;
&lt;P&gt;Where's this query being submitted? Interactive cluster, SQL Warehouse, dbt?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 15:06:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/table-or-view-already-exists-when-running-create-or-replace-view/m-p/72066#M7403</guid>
      <dc:creator>raphaelblg</dc:creator>
      <dc:date>2024-06-07T15:06:46Z</dc:date>
    </item>
  </channel>
</rss>

