<?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: Overwriting same table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/overwriting-same-table/m-p/74010#M34697</link>
    <description>&lt;P&gt;Found this to be a transient error. Once i restarted the cluster, the overwrite was successful.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 11:00:05 GMT</pubDate>
    <dc:creator>naga_databricks</dc:creator>
    <dc:date>2024-06-14T11:00:05Z</dc:date>
    <item>
      <title>Overwriting same table</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-same-table/m-p/74005#M34696</link>
      <description>&lt;P&gt;I have a table A that is used in a spark.sql and joins with multiple other tables to get data. this data will be overwritten to the same table A.&lt;/P&gt;&lt;P&gt;When i tried this, i get an error consistently as below:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;ERROR: An error occurred while calling o382.saveAsTable. Trace: py4j.Py4JException: Method saveAsTable([class java.util.HashSet]) does not exist at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:344) at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:352) at py4j.Gateway.invoke(Gateway.java:297) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:199) at py4j.ClientServerConnection.run(ClientServerConnection.java:119) at java.lang.Thread.run(Thread.java:750) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I tried writing same dataframe into new table and it works fine.&lt;/P&gt;&lt;P&gt;Are there some considerations to make when a dataframe containing results of a table is overwritten to same table?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 10:50:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-same-table/m-p/74005#M34696</guid>
      <dc:creator>naga_databricks</dc:creator>
      <dc:date>2024-06-14T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting same table</title>
      <link>https://community.databricks.com/t5/data-engineering/overwriting-same-table/m-p/74010#M34697</link>
      <description>&lt;P&gt;Found this to be a transient error. Once i restarted the cluster, the overwrite was successful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 11:00:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/overwriting-same-table/m-p/74010#M34697</guid>
      <dc:creator>naga_databricks</dc:creator>
      <dc:date>2024-06-14T11:00:05Z</dc:date>
    </item>
  </channel>
</rss>

