hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Robertson <timrobertson...@gmail.com>
Subject Re: How to generate global unique ID?
Date Tue, 16 Nov 2010 08:11:10 GMT
Does it need to be a sequential INT? If not, then a UUID works very well.

Cheers,
Tim


On Tue, Nov 16, 2010 at 8:55 AM, afancy <groupme@gmail.com> wrote:
> Hi, Zhang,
> How to integrate this snowflake with Hive?  Thanks!
> Regards,
> afancy
>
> On Mon, Nov 15, 2010 at 10:35 AM, Jeff Zhang <zjffdu@gmail.com> wrote:
>>
>> Please refer https://github.com/twitter/snowflake
>>
>>
>>
>> On Mon, Nov 15, 2010 at 5:09 PM, afancy <groupme@gmail.com> wrote:
>> > Hi,
>> > Does anybody know how to generate a unique ID in Hive? I have a table:
>> > hive> describe results;
>> > OK
>> > id int
>> > test string
>> > Time taken: 0.091 seconds
>> >
>> > When I insert data into the table results, i want to generate a unqiue
>> > Id,
>> > which is like a sequence in RDBMS.
>> > Regards,
>> > afancy
>>
>>
>>
>> --
>> Best Regards
>>
>> Jeff Zhang
>
>

Mime
View raw message