Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-25 Thread Tyler Hobbs
Good idea. Done here: https://github.com/pycassa/pycassa/commit/2390363066c7efd79bdd2f27cd2d4496f692abf4 On Wed, Apr 25, 2012 at 7:11 AM, Carlo Pires wrote: > Tyler, > > A think you could add this values as python constants to pycassa. This > would be very useful for many people. > > > 2012/4/2

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-25 Thread Carlo Pires
Tyler, A think you could add this values as python constants to pycassa. This would be very useful for many people. 2012/4/24 Drew Kutcharian > Nice, that's exactly what I was looking for. > > > On Apr 24, 2012, at 11:21 AM, Tyler Hobbs wrote: > > Oh, I just realized that you're asking about th

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-24 Thread Drew Kutcharian
Nice, that's exactly what I was looking for. On Apr 24, 2012, at 11:21 AM, Tyler Hobbs wrote: > Oh, I just realized that you're asking about the lowest TimeUUID *overall*, > not just for a particular timestamp. Sorry. > > The lowest possible TimeUUID is '--1000-8080-808080808080'.

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-24 Thread Tyler Hobbs
Oh, I just realized that you're asking about the lowest TimeUUID *overall*, not just for a particular timestamp. Sorry. The lowest possible TimeUUID is '--1000-8080-808080808080'. The highest is '--1fff-bf7f-7f7f7f7f7f7f'. On Tue, Apr 24, 2012 at 12:47 PM, Drew Kutcharian

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-24 Thread Drew Kutcharian
Thanks. So looking at the code, to get the lowest possible TimeUUID value using your function I should just call convert_time_to_uuid(0) ? On Apr 24, 2012, at 10:15 AM, Tyler Hobbs wrote: > Yes, I have tested it. > > On Tue, Apr 24, 2012 at 12:08 PM, Drew Kutcharian wrote: > Thanks Tyler. So

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-24 Thread Tyler Hobbs
Yes, I have tested it. On Tue, Apr 24, 2012 at 12:08 PM, Drew Kutcharian wrote: > Thanks Tyler. So have you actually tried this with Cassandra? > > > > On Apr 24, 2012, at 5:44 AM, Tyler Hobbs wrote: > > At least for TimeUUIDs, this email I sent to client-dev@ a couple of > weeks ago should help

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-24 Thread Drew Kutcharian
Thanks Tyler. So have you actually tried this with Cassandra? On Apr 24, 2012, at 5:44 AM, Tyler Hobbs wrote: > At least for TimeUUIDs, this email I sent to client-dev@ a couple of weeks > ago should help to explain things: > http://www.mail-archive.com/client-dev@cassandra.apache.org/msg0012

Re: Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-24 Thread Tyler Hobbs
At least for TimeUUIDs, this email I sent to client-dev@ a couple of weeks ago should help to explain things: http://www.mail-archive.com/client-dev@cassandra.apache.org/msg00125.html Looking at the linked pycassa code might be the most useful thing. On Tue, Apr 24, 2012 at 1:46 AM, Drew Kutchari

Highest and lowest valid values for UUIDs/TimeUUIDs

2012-04-23 Thread Drew Kutcharian
Hi All, Considering that UUIDs are compared as numbers in Java [1], what are the lowest and highest possible values a valid UUID can have? How about TimeUUIDs? The reason I ask is that I would like to pick a "default" UUID value in a composite column definition like Composite(UUID1, UUID2) wher