<?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: Get Last Insert in Impala partition in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88265#M11891</link>
    <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 02:03:19 GMT</pubDate>
    <dc:creator>ChineduLB</dc:creator>
    <dc:date>2019-03-26T02:03:19Z</dc:date>
    <item>
      <title>Get Last Insert in Impala partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88256#M11889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to retrieve only the last entry in a given partition if there are multiple entries therein&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assume I create an external table partitioned by date:&lt;BR /&gt;create external&amp;nbsp;table test_lb (field1 string, field2 string, field3 string)&lt;BR /&gt;&amp;nbsp; partitioned by (year string, month string , day string, host string)&lt;BR /&gt;&amp;nbsp; row format delimited fields terminated by ','&lt;/P&gt;&lt;P&gt;Then I insert multiple records to same partition. i,e. same year,month,day&lt;BR /&gt;insert into test_lb partition (year="2013", month="07", day="28") values ("foo1", "FOO2", "FOO3");&lt;BR /&gt;insert into test_lb partition (year="2013", month="07", day="28") values ("foo4", "FOO5", "FOO6");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I retrieve just the most recent entry via a query... is there an inbuilt way to get only the latest values&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88256#M11889</guid>
      <dc:creator>ChineduLB</dc:creator>
      <dc:date>2022-09-16T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Last Insert in Impala partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88262#M11890</link>
      <description>This isn't possible unless you include a timestamp or sequence number in every record. There's no concept of an order of rows built into Hive or Impala.</description>
      <pubDate>Mon, 25 Mar 2019 22:40:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88262#M11890</guid>
      <dc:creator>Tim Armstrong</dc:creator>
      <dc:date>2019-03-25T22:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Last Insert in Impala partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88265#M11891</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 02:03:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-Last-Insert-in-Impala-partition/m-p/88265#M11891</guid>
      <dc:creator>ChineduLB</dc:creator>
      <dc:date>2019-03-26T02:03:19Z</dc:date>
    </item>
  </channel>
</rss>

