<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rohit Amalnerkar on Medium]]></title>
        <description><![CDATA[Stories by Rohit Amalnerkar on Medium]]></description>
        <link>https://medium.com/@rohitamalnerkar?source=rss-00682683a8c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uXPw1eiJcn8-i28OuEC0hQ.jpeg</url>
            <title>Stories by Rohit Amalnerkar on Medium</title>
            <link>https://medium.com/@rohitamalnerkar?source=rss-00682683a8c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:07:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohitamalnerkar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Magic of Transaction Logs in Delta Tables]]></title>
            <link>https://medium.com/@rohitamalnerkar/magic-of-transaction-logs-in-delta-tables-5c63d1dc29c8?source=rss-00682683a8c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c63d1dc29c8</guid>
            <category><![CDATA[transaction-log]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[delta-lake]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Rohit Amalnerkar]]></dc:creator>
            <pubDate>Mon, 26 May 2025 04:23:27 GMT</pubDate>
            <atom:updated>2025-05-26T04:23:27.638Z</atom:updated>
            <content:encoded><![CDATA[<p>Although we know that a delta log is ordered records of every transaction performed on a table since its creation, very few actually know what goes at the backend in databricks while writing files or creating a new table.<br>Let’s try to simplify that using a few scenarios.</p><h3>1. Creating a delta table:</h3><p>DeltaLake has a reader process and a writer process. Suppose that you inserted some records into your table, the writer process writes this into 2 parquet files and stores this info into transaction log 000.json<br>When we query this table, the reader process will go to this log and find that file no. 1 and 2 are associated to this table and will pull the necessary data from them.</p><h3>2. Updating a record in the table:</h3><p>As soon as you update a record, the writer process updates a record existing in one of the files. If it is file 1, it won’t update it directly by overwriting the same file. Rather it creates a copy of the file (no. 3) and makes the change in the new file. Later it updates the log saying file no. 2 and 3 are relevant to the current version of the table. Now when we query this table, the reader process will read the log and will fetch the data in files 2 and 3</p><h3>3. Read and Update at the same time:</h3><p>While querying the data, reader process will still find files 2 and 3 relevant to the table’s data and give you the latest information even though a record is being added to this table simultaneously. As the writer process adds a new record via file no. 4, it is until it finishes adding and updating the log that the new record won’t be reflected after querying the table. Hence, Delta Lake ensures that you get the most recent version of the data. <br>The read operation here will never have any conflict with the write operation as these 2 events will be isolated.</p><h3>4. Encountering Error while writing new records:</h3><p>What if writer process encounters an error while writing new file no. 5 and the file is incomplete? In this case the log is never updated and will have no info about the incomplete file no. 5<br>While querying the data, the reader will still find files 2,3,4 as relevant to the current version of the table and will fetch the data accordingly.</p><p>These transaction logs allow delta lake to perform ACID transactions on data lakes thus enabling smooth handling of scalable metadata.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c63d1dc29c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>