<?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: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366894#M239700</link>
    <description>&lt;P&gt;Thanks for the offer and sorry for the late reply. We use CDP 7.4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime I have been able to also receive an answer from Cloudera support and they have confirmed that in our scenario we do not need to run the D&lt;SPAN&gt;ROP INCREMENTAL STATS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. I do not think that additional tests are required.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 17:05:52 GMT</pubDate>
    <dc:creator>Me</dc:creator>
    <dc:date>2023-03-24T17:05:52Z</dc:date>
    <item>
      <title>COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366066#M239480</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run COMPUTE INCREMENTAL STATS with PARTITION option on some partitions of a partitioned table.&lt;/P&gt;&lt;P&gt;It is unclear to me from the documentation if DROP INCREMENTAL STATS must be run on those partitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my understanding of how INCREMENTAL STATS with the PARTITION option work, it should not be required, but I've found below sentence on this page &lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/impala_perf_stats.html#perf_stats" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/impala_perf_stats.html#perf_stats&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"In cases where new files are added to an existing partition, issue a REFRESH statement for the table, followed by a DROP INCREMENTAL STATS and COMPUTE INCREMENTAL STATS sequence for the changed partition.".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer to avoid running DROP INCREMENTAL STATS if not required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:42:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366066#M239480</guid>
      <dc:creator>Me</dc:creator>
      <dc:date>2026-04-21T07:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366075#M239484</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28409"&gt;@Me&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our CDP experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21311"&gt;@PabitraDas&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74887"&gt;@aakulov&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:13:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366075#M239484</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-03-14T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366076#M239485</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This statement in the doc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"In cases where new files are added to an existing partition, issue a REFRESH statement for the table, followed by a DROP INCREMENTAL STATS and COMPUTE INCREMENTAL STATS sequence for the changed partition."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Applies specifically to a partition in which stats are already available but you added more data to that existing partition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are unsure about whether stats exist for a partition you can run&amp;nbsp;show table stats &amp;lt;table_name&amp;gt;; and check the "Incremental stats" section&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Query: show table stats test_part
+-------+-------+--------+------+--------------+-------------------+--------+-------------------+--------------------------------------------------------------------------+
| b | #Rows | #Files | Size | Bytes Cached | Cache Replication | Format | Incremental stats | Location |
+-------+-------+--------+------+--------------+-------------------+--------+-------------------+--------------------------------------------------------------------------+
| 1 | 0 | 1 | 0B | NOT CACHED | NOT CACHED | TEXT | false | hdfs://xxxx:8020/user/hive/warehouse/test_part/b=1 |
| Total | -1 | 1 | 0B | 0B | | | | |
+-------+-------+--------+------+--------------+-------------------+--------+-------------------+--------------------------------------------------------------------------+
Fetched 2 row(s) in 5.60s&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If false, you can run COMPUTE INCREMENTAL STATS with PARTITION&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If true and you have added more data to this partition then you have to drop the stats and then run&amp;nbsp;COMPUTE INCREMENTAL STATS with PARTITION&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:16:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366076#M239485</guid>
      <dc:creator>venkatsambath</dc:creator>
      <dc:date>2023-03-14T16:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366083#M239489</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is not answering my question. I'd like to know why I must run the&amp;nbsp;&lt;SPAN&gt;DROP INCREMENTAL STATS in my scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have run a small test:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- created a partitioned table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- run&amp;nbsp;COMPUTE INCREMENTAL STATS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- run SHOW TABLE STATS and saved the result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- added one row to one partition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- run&amp;nbsp;COMPUTE INCREMENTAL STATS PARTITION (&amp;lt;partitioning key of the partition to which the row was added)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- run SHOW TABLE STATS and compare to the previous run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Result of the comparison: the stats of the partition to which I have added one row were updated and reflecting the number of rows in the partition / number of files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Based on my tests it looks like the stats are updated, hence my question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:06:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366083#M239489</guid>
      <dc:creator>Me</dc:creator>
      <dc:date>2023-03-14T17:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366304#M239540</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28409"&gt;@Me&lt;/a&gt;&amp;nbsp;Sorry for that confusion. I see what you mean now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per:&amp;nbsp;&lt;A href="https://impala.apache.org/docs/build/html/topics/impala_perf_stats.html#perf_stats_incremental" target="_blank" rel="noopener"&gt;https://impala.apache.org/docs/build/html/topics/impala_perf_stats.html#perf_stats_incremental&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;COMPUTE INCREMENTAL STATS&lt;/H3&gt;&lt;DIV class="body conbody"&gt;&lt;P class="p"&gt;In Impala 2.1.0 and higher, you can use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;COMPUTE INCREMENTAL STATS&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DROP INCREMENTAL STATS&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;commands. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;INCREMENTAL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;clauses work with incremental statistics, a specialized feature for partitioned tables.&lt;/P&gt;&lt;P class="p"&gt;When you compute incremental statistics for a partitioned table, &lt;STRONG&gt;by default Impala only processes those partitions that do not yet have incremental statistics&lt;/STRONG&gt;. By processing only newly added partitions, you can keep statistics up to date without incurring the overhead of reprocessing the entire table each time.&lt;/P&gt;&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p"&gt;So the drop statistics is intended for "&lt;SPAN&gt;COMPUTE INCREMENTAL STATS" and not for "&amp;nbsp;COMPUTE INCREMENTAL STATS with partition"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p"&gt;&lt;SPAN&gt;May I know which version of CDP you are using, so that I can test on my end and confirm you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2023 22:11:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366304#M239540</guid>
      <dc:creator>venkatsambath</dc:creator>
      <dc:date>2023-03-16T22:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366540#M239607</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28409"&gt;@Me&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/13587" target="_blank"&gt;&lt;SPAN class=""&gt;venkatsambath&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;has requested? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 18:21:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366540#M239607</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-03-20T18:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366894#M239700</link>
      <description>&lt;P&gt;Thanks for the offer and sorry for the late reply. We use CDP 7.4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime I have been able to also receive an answer from Cloudera support and they have confirmed that in our scenario we do not need to run the D&lt;SPAN&gt;ROP INCREMENTAL STATS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. I do not think that additional tests are required.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:05:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366894#M239700</guid>
      <dc:creator>Me</dc:creator>
      <dc:date>2023-03-24T17:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366895#M239701</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93628"&gt;@DianaTorres&lt;/a&gt;&amp;nbsp;I was able to received the reply to my question through Cloudera Support - see also my comment above. Should I mark my reply above as Solution?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:12:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366895#M239701</guid>
      <dc:creator>Me</dc:creator>
      <dc:date>2023-03-24T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE INCREMENTAL STATS with PARTITION option: do I need to run DROP INCREMENTAL STATS before it?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366900#M239706</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28409"&gt;@Me&lt;/a&gt;&amp;nbsp;Yes, that is the solution to your post, thank you for coming back with the fix. This will help more users in the future. Thanks for your contribution!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:35:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/COMPUTE-INCREMENTAL-STATS-with-PARTITION-option-do-I-need-to/m-p/366900#M239706</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-03-24T17:35:52Z</dc:date>
    </item>
  </channel>
</rss>

