<?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 Incompatible format detected while writing in Parquet format. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26352#M18428</link>
    <description>&lt;P&gt;I am writing/reading data from Azure databricks to data lake. I wrote dataframe to a path in delta format using query a below, later I realized that I need the data in parquet format, and I went to the storage account and manually deleted the filepath. Now, when I try to execute query b it always throwing an error c below. I am pretty sure the filepath now does not exists on the storage because I manually deleted it. What is missing here, is this some kind of bug? Thanks in advance!&lt;/P&gt;&lt;P&gt;a) df.coalesce(1).write.format('delta').mode('overwrite').option('overwriteSchema', 'true').save(filepath)&lt;/P&gt;&lt;P&gt;b) df.coalesce(1).write.format('parquet').mode('overwrite').option('overwriteSchema', 'true').save(filepath)&lt;/P&gt;&lt;P&gt;c) AnalysisException: Incompatible format detected.&lt;/P&gt;&lt;P&gt;A transaction log for Databricks Delta was found at `filepath_delta_log`,&lt;/P&gt;&lt;P&gt;but you are trying to write to `filepath` using format("parquet"). You must use&lt;/P&gt;&lt;P&gt;'format("delta")' when reading and writing to a delta table.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 19:42:01 GMT</pubDate>
    <dc:creator>KKo</dc:creator>
    <dc:date>2022-10-20T19:42:01Z</dc:date>
    <item>
      <title>Incompatible format detected while writing in Parquet format.</title>
      <link>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26352#M18428</link>
      <description>&lt;P&gt;I am writing/reading data from Azure databricks to data lake. I wrote dataframe to a path in delta format using query a below, later I realized that I need the data in parquet format, and I went to the storage account and manually deleted the filepath. Now, when I try to execute query b it always throwing an error c below. I am pretty sure the filepath now does not exists on the storage because I manually deleted it. What is missing here, is this some kind of bug? Thanks in advance!&lt;/P&gt;&lt;P&gt;a) df.coalesce(1).write.format('delta').mode('overwrite').option('overwriteSchema', 'true').save(filepath)&lt;/P&gt;&lt;P&gt;b) df.coalesce(1).write.format('parquet').mode('overwrite').option('overwriteSchema', 'true').save(filepath)&lt;/P&gt;&lt;P&gt;c) AnalysisException: Incompatible format detected.&lt;/P&gt;&lt;P&gt;A transaction log for Databricks Delta was found at `filepath_delta_log`,&lt;/P&gt;&lt;P&gt;but you are trying to write to `filepath` using format("parquet"). You must use&lt;/P&gt;&lt;P&gt;'format("delta")' when reading and writing to a delta table.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 19:42:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26352#M18428</guid>
      <dc:creator>KKo</dc:creator>
      <dc:date>2022-10-20T19:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible format detected while writing in Parquet format.</title>
      <link>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26353#M18429</link>
      <description>&lt;P&gt;Update: I tried &lt;B&gt;&lt;I&gt;Clear state and outputs&lt;/I&gt;&lt;/B&gt; which did not help, but when I restarted the cluster it worked without an issue. Though the issue is fixed, I still don't know what caused the issue to come in.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:50:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26353#M18429</guid>
      <dc:creator>KKo</dc:creator>
      <dc:date>2022-10-20T20:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible format detected while writing in Parquet format.</title>
      <link>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26354#M18430</link>
      <description>&lt;P&gt;Hi @Kris Koirala​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. If you would like to find the RCA of this issue, please go to you driver logs and download the log4j, stdout and stderr logs. These log files will help you to narrow down the RCA and the reason why the error was happening.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 18:19:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/incompatible-format-detected-while-writing-in-parquet-format/m-p/26354#M18430</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-10-24T18:19:48Z</dc:date>
    </item>
  </channel>
</rss>

