Member since
04-19-2017
5
Posts
0
Kudos Received
0
Solutions
05-09-2017
01:17 PM
@Amol Kulkarni Yes that's a known one. Hash function in hive functions similar to hash algorithm or hash sort logic in data structures. Like modulo of odd number by 2 is always 1. The same way the two values provided by you results in having same hash value. In order to generate unique values make use of md5() function in hive to generate unique values. However I suggest not to this logic for generation of primary key for a table as the values out of md5() will be a total mess.
... View more