Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 19430 invoked from network); 19 Mar 2010 16:13:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Mar 2010 16:13:07 -0000 Received: (qmail 92469 invoked by uid 500); 19 Mar 2010 16:13:07 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 92454 invoked by uid 500); 19 Mar 2010 16:13:07 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 92446 invoked by uid 99); 19 Mar 2010 16:13:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 16:13:06 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jesse.mcconnell@gmail.com designates 209.85.211.195 as permitted sender) Received: from [209.85.211.195] (HELO mail-yw0-f195.google.com) (209.85.211.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 16:13:01 +0000 Received: by ywh33 with SMTP id 33so1326251ywh.11 for ; Fri, 19 Mar 2010 09:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=qBk4IhGnozg4aBGxZ8xsNRPOmpv2A41/6lciKSpxh38=; b=RlasjZm5J/VWyaOOM8RU7K8sfHfcp/1cNTKGeo1PhPOukA3JP37pJVoqEXnh4sv84J ABHgUEyDIy8jbDO1Af0M4BDjZyxzC+MbcUE1GmZLACxPnFTrCx8lDWvMNj0U8M2YoZup OUZckeslwYnpzcLHX3xFla8mi14Nxc4iV/NgE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Oaw/8hhMuMYIL/G159nIgUknWUISn2JIyHJifcPes2gzXFJuhaqv/iO0BPpMkBzKci DWPVEY9aauqwZgh2yxMicHAzdPVpPBu4+2OKk13vHZRO6b+VPWuEcb2SqUPImcYKLeGw 7lj/DufvCELGFmWnlbb4/MPyFuVUpU/VgP4EA= MIME-Version: 1.0 Received: by 10.91.92.19 with SMTP id u19mr687626agl.68.1269015160543; Fri, 19 Mar 2010 09:12:40 -0700 (PDT) In-Reply-To: References: <24276CBD-086F-445A-9DD5-E8B131CE7FE3@socketlabs.com> <749BC322-7E4C-4D29-B9B6-87C6D2769BC6@socketlabs.com> Date: Fri, 19 Mar 2010 11:12:40 -0500 Message-ID: Subject: Re: Issue with TimeUUID From: Jesse McConnell To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable alternately try using LexicalUUIDType, that seems to work jesse -- jesse mcconnell jesse.mcconnell@gmail.com On Fri, Mar 19, 2010 at 11:00, Sylvain Lebresne wrote: > As said, I agree with that. > I've thus created a jira issue > (https://issues.apache.org/jira/browse/CASSANDRA-907). > The discussion could continue there. > > On Fri, Mar 19, 2010 at 4:30 PM, Jesse McConnell > wrote: >> imo it is a terrible bug.. >> >> the usage of a TimeUUIDType implies that your actually caring about >> the unique bits outside of a timestamp... >> >> currently it's nothing more then LongType ColumnFamily backed by >> System.currentTimeInMillis() as a source for name columns. >> >> jesse >> >> -- >> jesse mcconnell >> jesse.mcconnell@gmail.com >> >> >> >> On Fri, Mar 19, 2010 at 04:53, Sylvain Lebresne wrot= e: >>> Just looked at the code and it indeed just compare the >>> timestamps. I also find it weird and I would be for changing it, >>> but maybe there was a good reason to do it the way it is (even >>> if I don't see one right now). I'll let people give their opinion on >>> that. >>> >>> In the meantime, if you need a quick fix for testing, I join you >>> a two line patch that should fix it. >>> >>> -- >>> Sylvain >>> >>> On Fri, Mar 19, 2010 at 1:25 AM, John Alessi wrot= e: >>>> But they are different names. =C2=A0In my example they are: >>>> 1077e700-c7f2-11de-86d5-f5bcc793a028 >>>> 1077e700-c7f2-11de-982e-6fad363d5f29 >>>> But Cassandra sees them as the same. >>>> -- >>>> John >>>> >>>> >>>> >>>> On Mar 18, 2010, at 7:17 PM, Brandon Williams wrote: >>>> >>>> On Thu, Mar 18, 2010 at 6:12 PM, John Alessi wro= te: >>>>> >>>>> I am having an issue where Cassandra doesn't seem to be able to >>>>> distinguish between 2 different UUIDs if based on the same exact time= , and >>>>> sorting by TimeUUID. >>>> >>>> *snip* >>>>> >>>>> Cassandra doesn't seem to be able to distinguish between 2 different = UUIDs >>>>> if based on the same exact time, and sorting by TimeUUID. >>>>> >>>>> What am I missing??? >>>> >>>> Column names must be distinct. =C2=A0If you insert two columns with th= e same >>>> name, one overwrites the other. >>>> -Brandon >>>> >>>> >>> >> >