<?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: hi all - I have created a data frame and would like to save in delta format using 
df.write.format(&amp;quot;delta&amp;quot;).saveAsTable(&amp;quot;tablename&amp;quot;)
Its not working and  throws &amp;quot;
AnalysisException&amp;quot; . Please advise . in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22037#M15055</link>
    <description>&lt;P&gt;thank you  for the response. db runtime was older. issue resolved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 21:01:40 GMT</pubDate>
    <dc:creator>joakon</dc:creator>
    <dc:date>2022-11-29T21:01:40Z</dc:date>
    <item>
      <title>hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22032#M15050</link>
      <description />
      <pubDate>Thu, 17 Nov 2022 04:15:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22032#M15050</guid>
      <dc:creator>joakon</dc:creator>
      <dc:date>2022-11-17T04:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22033#M15051</link>
      <description>&lt;P&gt;Hi @raghu maremanda​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please share error details?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you using PYTHON CELL to execute the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure right now if it's optional or mandatory, but you could add .mode() i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("delta").mode("append").saveAsTable("tablename")
&amp;nbsp;
append or overwrite&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to: &lt;A href="https://docs.delta.io/latest/delta-batch.html#write-to-a-table" target="test_blank"&gt;https://docs.delta.io/latest/delta-batch.html#write-to-a-table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:44:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22033#M15051</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-11-17T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22034#M15052</link>
      <description>&lt;P&gt;Thank you for your response. &lt;/P&gt;&lt;P&gt;This is what I have so far - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d = spark.read.option("inferSchema" ,"true").option("delimeter" ,",").option("header","true").csv('dbfs:/FileStore/tables/Devices.csv')&lt;/P&gt;&lt;P&gt;d.write.format("delta").mode("append").saveAsTable("devices_new")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1179i9BD17104CD20D9A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 16:29:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22034#M15052</guid>
      <dc:creator>joakon</dc:creator>
      <dc:date>2022-11-17T16:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22035#M15053</link>
      <description>&lt;P&gt;@raghu maremanda​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you didn't add the .mode() in your code shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's still:&lt;/P&gt;&lt;P&gt;d.write.format("delta").saveAsTable("delta.devices_new")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this will help, but try:&lt;/P&gt;&lt;P&gt;d.write.format("delta").mode("append").saveAsTable("devices_new")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, the error doesn't tell much. can you share the error thrown?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:50:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22035#M15053</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-11-17T21:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22036#M15054</link>
      <description>&lt;P&gt;Your code is not wrong, I tried and executed from my side and no error happens.&lt;/P&gt;&lt;P&gt;Could you check version of DBR?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2563i33A71CA4EF90AD4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 05:48:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22036#M15054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T05:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22037#M15055</link>
      <description>&lt;P&gt;thank you  for the response. db runtime was older. issue resolved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:01:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22037#M15055</guid>
      <dc:creator>joakon</dc:creator>
      <dc:date>2022-11-29T21:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: hi all - I have created a data frame and would like to save in delta format using 
df.write.format("delta").saveAsTable("tablename")
Its not working and  throws "
AnalysisException" . Please advise .</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22039#M15057</link>
      <description>&lt;P&gt;check your read cell, "&lt;B&gt;Delimeter"&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 14:28:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-all-i-have-created-a-data-frame-and-would-like-to-save-in/m-p/22039#M15057</guid>
      <dc:creator>huyd</dc:creator>
      <dc:date>2022-12-17T14:28:59Z</dc:date>
    </item>
  </channel>
</rss>

