<?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: When I have to Refresh / Invalidate Metadata a table ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94053#M57524</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;STRONG&gt;REFRESH&lt;/STRONG&gt; the table only when I add &lt;STRONG&gt;new data&lt;/STRONG&gt;&amp;nbsp;through &lt;EM&gt;HIVE&lt;/EM&gt; or &lt;EM&gt;HDFS commands&amp;nbsp;&lt;/EM&gt;? That is when I am doing &lt;EM&gt;insert into ...through impala-shell&lt;/EM&gt; no need for refreshing ?&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;INVALIDATE METADATA&amp;nbsp; &lt;/STRONG&gt;of&amp;nbsp;the table only when I change the &lt;U&gt;&lt;EM&gt;structure&lt;/EM&gt;&lt;/U&gt; of the table (add columns, drop partitions) through HIVE?&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct. Or creating new tables through Hive.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;DROPping&lt;/STRONG&gt; partitions of a table through &lt;EM&gt;impala-shell (i.e &lt;STRONG&gt;alter table&amp;nbsp; .. drop partition .. purge&lt;/STRONG&gt;).&amp;nbsp; Do I have to do REFRESH or INVALIDATE METADATA?&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;DROPping&lt;/STRONG&gt; partitions of a table through &lt;EM&gt;impala-shell . H&lt;/EM&gt;&lt;EM&gt;ow can I compute the new stats of the partitioned table?&amp;nbsp; &lt;STRONG&gt;Compute incremental stats&lt;/STRONG&gt; OR &lt;STRONG&gt;Drop Incremental stats&lt;/STRONG&gt; before dropping partition ?&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The next time you run an incremental stats for a new partition Impala will update things correctly (e.g. the global row count)&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 22:31:24 GMT</pubDate>
    <dc:creator>araujo</dc:creator>
    <dc:date>2019-08-14T22:31:24Z</dc:date>
    <item>
      <title>When I have to Refresh / Invalidate Metadata a table ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94048#M57521</link>
      <description>&lt;P&gt;Let's assume that I have a table&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;test_tbl&amp;nbsp;&lt;/STRONG&gt;which was created through impala-shell.&lt;/P&gt;&lt;P&gt;I have a few questions :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;REFRESH&lt;/STRONG&gt; the table only when I add &lt;STRONG&gt;new data&lt;/STRONG&gt;&amp;nbsp;through &lt;EM&gt;HIVE&lt;/EM&gt; or &lt;EM&gt;HDFS commands&amp;nbsp;&lt;/EM&gt;? That is when I am doing &lt;EM&gt;insert into ...through impala-shell&lt;/EM&gt; no need for refreshing ?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;INVALIDATE METADATA&amp;nbsp; &lt;/STRONG&gt;of&amp;nbsp;the table only when I change the &lt;U&gt;&lt;EM&gt;structure&lt;/EM&gt;&lt;/U&gt; of the table (add columns, drop partitions) through HIVE?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DROPping&lt;/STRONG&gt; partitions of a table through &lt;EM&gt;impala-shell (i.e &lt;STRONG&gt;alter table&amp;nbsp; .. drop partition .. purge&lt;/STRONG&gt;).&amp;nbsp; Do I have to do REFRESH or INVALIDATE METADATA?&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DROPping&lt;/STRONG&gt; partitions of a table through &lt;EM&gt;impala-shell . H&lt;/EM&gt;&lt;EM&gt;ow can I compute the new stats of the partitioned table?&amp;nbsp; &lt;STRONG&gt;Compute incremental stats&lt;/STRONG&gt; OR &lt;STRONG&gt;Drop Incremental stats&lt;/STRONG&gt; before dropping partition ?&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks in advance.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 19:03:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94048#M57521</guid>
      <dc:creator>eMazarakis</dc:creator>
      <dc:date>2019-08-14T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: When I have to Refresh / Invalidate Metadata a table ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94053#M57524</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;STRONG&gt;REFRESH&lt;/STRONG&gt; the table only when I add &lt;STRONG&gt;new data&lt;/STRONG&gt;&amp;nbsp;through &lt;EM&gt;HIVE&lt;/EM&gt; or &lt;EM&gt;HDFS commands&amp;nbsp;&lt;/EM&gt;? That is when I am doing &lt;EM&gt;insert into ...through impala-shell&lt;/EM&gt; no need for refreshing ?&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;INVALIDATE METADATA&amp;nbsp; &lt;/STRONG&gt;of&amp;nbsp;the table only when I change the &lt;U&gt;&lt;EM&gt;structure&lt;/EM&gt;&lt;/U&gt; of the table (add columns, drop partitions) through HIVE?&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct. Or creating new tables through Hive.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;DROPping&lt;/STRONG&gt; partitions of a table through &lt;EM&gt;impala-shell (i.e &lt;STRONG&gt;alter table&amp;nbsp; .. drop partition .. purge&lt;/STRONG&gt;).&amp;nbsp; Do I have to do REFRESH or INVALIDATE METADATA?&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;DROPping&lt;/STRONG&gt; partitions of a table through &lt;EM&gt;impala-shell . H&lt;/EM&gt;&lt;EM&gt;ow can I compute the new stats of the partitioned table?&amp;nbsp; &lt;STRONG&gt;Compute incremental stats&lt;/STRONG&gt; OR &lt;STRONG&gt;Drop Incremental stats&lt;/STRONG&gt; before dropping partition ?&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The next time you run an incremental stats for a new partition Impala will update things correctly (e.g. the global row count)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:31:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94053#M57524</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2019-08-14T22:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: When I have to Refresh / Invalidate Metadata a table ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94057#M57528</link>
      <description>For number 2, ANY changes outside of Impala, you will need INVALIDATE METADATA, or if new data added, then REFRESH will do.&lt;BR /&gt;&lt;BR /&gt;Work is underway to improve it: &lt;A href="https://issues.apache.org/jira/browse/IMPALA-3124" target="_blank"&gt;https://issues.apache.org/jira/browse/IMPALA-3124&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Thu, 15 Aug 2019 00:27:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/When-I-have-to-Refresh-Invalidate-Metadata-a-table/m-p/94057#M57528</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-08-15T00:27:03Z</dc:date>
    </item>
  </channel>
</rss>

