<?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: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in De in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/112755#M44319</link>
    <description>&lt;P&gt;A &lt;STRONG&gt;.CRC file (Cyclic Redundancy Check) is an &lt;STRONG&gt;internal checksum file used by Spark (and Hadoop) to ensure data integrity when reading and writing files.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Data Integrity Check – .CRC files store checksums of actual data files. When reading a file, Spark/Hadoop verifies the checksum to detect corruption.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Auto-Generated by HDFS – When a file is written to an HDFS-backed storage (like DBFS in Databricks or S3 with Hadoop connectors), Hadoop’s FileSystem API may generate .CRC files.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;Prevents Partial/Corrupt Reads – If a .CRC file exists, Spark ensures the data file hasn’t been tampered with.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;If you're using &lt;STRONG&gt;Databricks with S3 or ADLS and don't want .CRC files, you can disable checksum verification:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;spark.conf.&lt;SPAN class=""&gt;set(&lt;SPAN class=""&gt;"spark.hadoop.fs.s3a.fast.upload", &lt;SPAN class=""&gt;"true") spark.conf.&lt;SPAN class=""&gt;set(&lt;SPAN class=""&gt;"spark.hadoop.fs.s3a.fast.upload.buffer", &lt;SPAN class=""&gt;"disk")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 17 Mar 2025 05:27:34 GMT</pubDate>
    <dc:creator>VasuBajaj</dc:creator>
    <dc:date>2025-03-17T05:27:34Z</dc:date>
    <item>
      <title>Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in Delta</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/18247#M12078</link>
      <description />
      <pubDate>Fri, 25 Jun 2021 22:41:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/18247#M12078</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-25T22:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in Delta</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/18248#M12079</link>
      <description>&lt;P&gt;Could someone provide any insight?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:12:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/18248#M12079</guid>
      <dc:creator>elgeo</dc:creator>
      <dc:date>2022-10-25T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in Delta</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/18249#M12080</link>
      <description>&lt;P&gt;Every 10 transactions json files in the _delta_log are converted to parquet files. The .crc file is a checksum added to prevent corruption if a parquet file is corrupted in flight&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 22:37:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/18249#M12080</guid>
      <dc:creator>User16752240150</dc:creator>
      <dc:date>2023-01-09T22:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in De</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/95083#M39036</link>
      <description>&lt;P&gt;crc is used for checksum data and data verification&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 15:38:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/95083#M39036</guid>
      <dc:creator>Dineshvishe</dc:creator>
      <dc:date>2024-10-20T15:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in De</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/95147#M39046</link>
      <description>&lt;H3&gt;&lt;SPAN&gt;CRC (Cyclic Redundancy Check) files in Delta Lake logs play a crucial role in ensuring data integrity and consistency. They are used to verify the integrity of the data files and transaction logs. Here's how CRC files help with transaction control in Delta Lake:&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;Role of CRC Files in Delta Lake&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Data Integrity&lt;/STRONG&gt;: CRC files store checksums for data files and transaction logs. These checksums are used to verify that the files have not been corrupted or tampered with.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Transaction Consistency&lt;/STRONG&gt;: Delta Lake uses CRC files to ensure that all parts of a transaction are consistent. If any part of a transaction is corrupted, the CRC check will fail, and the transaction will be rolled back or flagged for correction.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Error Detection&lt;/STRONG&gt;: CRC files help detect errors in data files and transaction logs. When a file is read, its checksum is compared with the stored CRC value. If they do not match, it indicates that the file has been corrupted.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Efficient Validation&lt;/STRONG&gt;: CRC checksums provide a lightweight and efficient way to validate the integrity of files without having to read the entire file content.&amp;nbsp;&lt;SPAN&gt;This speeds up the validation process, especially for large datasets.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 21 Oct 2024 08:58:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/95147#M39046</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2024-10-21T08:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in De</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/95200#M39054</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/36149"&gt;@brickster_2018&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/69823"&gt;@elgeo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CRC ensures: Correctness, Recovery, Consistency&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;hecksum Verification&lt;BR /&gt;&lt;STRONG&gt;R&lt;/STRONG&gt;ead Validation&lt;BR /&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;onsistent Transactions&lt;BR /&gt;&lt;STRONG&gt;R&lt;/STRONG&gt;ecovery Mechanism&lt;BR /&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;ommit Optimization&lt;/P&gt;&lt;P&gt;It(&lt;STRONG&gt;CRC&lt;/STRONG&gt;) ensures data isn't corrupted during storage or transfer, verifies consistency during reads, maintains atomicity by checking file integrity, triggers recovery on mismatch &amp;amp; speeds up validation without full scans.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 10:27:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/95200#M39054</guid>
      <dc:creator>Panda</dc:creator>
      <dc:date>2024-10-21T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we need CRC files in Delta logs. How does CRC file help for the transaction control in De</title>
      <link>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/112755#M44319</link>
      <description>&lt;P&gt;A &lt;STRONG&gt;.CRC file (Cyclic Redundancy Check) is an &lt;STRONG&gt;internal checksum file used by Spark (and Hadoop) to ensure data integrity when reading and writing files.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Data Integrity Check – .CRC files store checksums of actual data files. When reading a file, Spark/Hadoop verifies the checksum to detect corruption.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Auto-Generated by HDFS – When a file is written to an HDFS-backed storage (like DBFS in Databricks or S3 with Hadoop connectors), Hadoop’s FileSystem API may generate .CRC files.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;Prevents Partial/Corrupt Reads – If a .CRC file exists, Spark ensures the data file hasn’t been tampered with.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;If you're using &lt;STRONG&gt;Databricks with S3 or ADLS and don't want .CRC files, you can disable checksum verification:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;spark.conf.&lt;SPAN class=""&gt;set(&lt;SPAN class=""&gt;"spark.hadoop.fs.s3a.fast.upload", &lt;SPAN class=""&gt;"true") spark.conf.&lt;SPAN class=""&gt;set(&lt;SPAN class=""&gt;"spark.hadoop.fs.s3a.fast.upload.buffer", &lt;SPAN class=""&gt;"disk")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 17 Mar 2025 05:27:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-do-we-need-crc-files-in-delta-logs-how-does-crc-file-help/m-p/112755#M44319</guid>
      <dc:creator>VasuBajaj</dc:creator>
      <dc:date>2025-03-17T05:27:34Z</dc:date>
    </item>
  </channel>
</rss>

