<?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>question Re: Merging tablet base and delta files in Kudu in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Merging-tablet-base-and-delta-files-in-Kudu/m-p/53840#M59662</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21706"&gt;@rpaidar&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Most, of the code that does this can be found in the "tablet" module.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Iterators for all rowsets are assembled in Tablet::CaptureConsistentIterators() (&lt;A href="https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/tablet.cc#L1572" target="_blank"&gt;https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/tablet.cc#L1572&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then, for diskrowsets, the base data iterator is wrapped in a delta iterator. This process starts at DiskRowSet::NewRowIterator() (&lt;A href="https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/diskrowset.cc#L592" target="_blank"&gt;https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/diskrowset.cc#L592&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; To get more insight on how the base is materialized and deltas are applied you can follow the different iterators that are created in DiskRowSet::NewRowIterator().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 03:30:43 GMT</pubDate>
    <dc:creator>dralves</dc:creator>
    <dc:date>2017-04-19T03:30:43Z</dc:date>
    <item>
      <title>Merging tablet base and delta files in Kudu</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Merging-tablet-base-and-delta-files-in-Kudu/m-p/53839#M59661</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to understand how Kudu merges the base&amp;nbsp;file with delta files. &amp;nbsp;I found this in a blog:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For each DiskRowSet, the scanner will materialise a column at a time, and apply any delta records and predicates before moving on to the next column.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could some one point me to the code that does this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:28:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Merging-tablet-base-and-delta-files-in-Kudu/m-p/53839#M59661</guid>
      <dc:creator>rpaidar</dc:creator>
      <dc:date>2022-09-16T11:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tablet base and delta files in Kudu</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Merging-tablet-base-and-delta-files-in-Kudu/m-p/53840#M59662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21706"&gt;@rpaidar&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Most, of the code that does this can be found in the "tablet" module.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Iterators for all rowsets are assembled in Tablet::CaptureConsistentIterators() (&lt;A href="https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/tablet.cc#L1572" target="_blank"&gt;https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/tablet.cc#L1572&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then, for diskrowsets, the base data iterator is wrapped in a delta iterator. This process starts at DiskRowSet::NewRowIterator() (&lt;A href="https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/diskrowset.cc#L592" target="_blank"&gt;https://github.com/cloudera/kudu/blob/master/src/kudu/tablet/diskrowset.cc#L592&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; To get more insight on how the base is materialized and deltas are applied you can follow the different iterators that are created in DiskRowSet::NewRowIterator().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 03:30:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Merging-tablet-base-and-delta-files-in-Kudu/m-p/53840#M59662</guid>
      <dc:creator>dralves</dc:creator>
      <dc:date>2017-04-19T03:30:43Z</dc:date>
    </item>
  </channel>
</rss>

