<?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 Hive: hash function unique values in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-hash-function-unique-values/m-p/119489#M47113</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone confirm if the hash function would always result with unique integer value, say even for millions of unique account numbers, and the same number would not repeat again?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2016 03:14:25 GMT</pubDate>
    <dc:creator>ashsskum</dc:creator>
    <dc:date>2016-11-24T03:14:25Z</dc:date>
    <item>
      <title>Hive: hash function unique values</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-hash-function-unique-values/m-p/119489#M47113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone confirm if the hash function would always result with unique integer value, say even for millions of unique account numbers, and the same number would not repeat again?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 03:14:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-hash-function-unique-values/m-p/119489#M47113</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-11-24T03:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: hash function unique values</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-hash-function-unique-values/m-p/119490#M47114</link>
      <description>&lt;P&gt;Depends on what arguments you are providing to the hash function. If your argument values are unique, you would most likely get unique value from hash. Keep in mind hive hash function return int (which is 32bit) so you may see -ve numbers as well. You can use something like reflect('java.util.UUID','randomUUID') to generate uniqueID or comeup with some unique code. I would not suggest using hash function, if you want to generate unique ids.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 04:59:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-hash-function-unique-values/m-p/119490#M47114</guid>
      <dc:creator>kkhan</dc:creator>
      <dc:date>2016-11-24T04:59:04Z</dc:date>
    </item>
  </channel>
</rss>

