<?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 Write Empty Delta file in Datalake in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20323#M13707</link>
    <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;Currently, i am trying to write an empty delta file in data lake, to do this i am doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reading parquet file from my landing zone ( this file consists only of the schema of SQL tables)&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;df=spark.read.format('parquet').load(landingZonePath)&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;After this, i convert this file into the delta&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("delta").save(centralizedZonePath)&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;But after checking data lake i see no file&lt;/LI&gt;&lt;LI&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/1858i67E4747D706DA7E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Parquet file in landingzone, has the schema&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 13:36:03 GMT</pubDate>
    <dc:creator>BhagS</dc:creator>
    <dc:date>2022-05-17T13:36:03Z</dc:date>
    <item>
      <title>Write Empty Delta file in Datalake</title>
      <link>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20323#M13707</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;Currently, i am trying to write an empty delta file in data lake, to do this i am doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reading parquet file from my landing zone ( this file consists only of the schema of SQL tables)&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;df=spark.read.format('parquet').load(landingZonePath)&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;After this, i convert this file into the delta&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("delta").save(centralizedZonePath)&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;But after checking data lake i see no file&lt;/LI&gt;&lt;LI&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/1858i67E4747D706DA7E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Parquet file in landingzone, has the schema&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:36:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20323#M13707</guid>
      <dc:creator>BhagS</dc:creator>
      <dc:date>2022-05-17T13:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Write Empty Delta file in Datalake</title>
      <link>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20324#M13708</link>
      <description>&lt;P&gt;@bhagya s​&amp;nbsp;, File schema is in _delta_log&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 16:52:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20324#M13708</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-05-17T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Write Empty Delta file in Datalake</title>
      <link>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20326#M13710</link>
      <description>&lt;P&gt;Hi @bhagya s​&amp;nbsp;Since your source file is empty, there is no data file inside the centralizedZonePath directory i.e .parquet file is not created in the target location. However, _delta_log is the transaction log that holds the metadata of the delta format data and has the schema of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may understand more about transaction logs here :https://databricks.com/discover/diving-into-delta-lake-talks/unpacking-transaction-log&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 03:20:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/write-empty-delta-file-in-datalake/m-p/20326#M13710</guid>
      <dc:creator>Noopur_Nigam</dc:creator>
      <dc:date>2022-06-02T03:20:42Z</dc:date>
    </item>
  </channel>
</rss>

