Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 366E39301 for ; Tue, 13 Mar 2012 21:28:53 +0000 (UTC) Received: (qmail 36544 invoked by uid 500); 13 Mar 2012 21:28:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 36526 invoked by uid 500); 13 Mar 2012 21:28:50 -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 36518 invoked by uid 99); 13 Mar 2012 21:28:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 21:28:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of abassiri@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 21:28:43 +0000 Received: by yenm5 with SMTP id m5so1222025yen.31 for ; Tue, 13 Mar 2012 14:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=F8AfNHzAOE7TPsbXjBa32CRQ9nXvpeILsz8CY7EzrSc=; b=lcnPqIuA3+PwnFAjPh+DwF13o0NdSj2TNr2HmOe16z3L1gL/Gi3AcNe4+gQez1EhwU alliN6yTEm5WIAi8EubVswlxFp+mixpzconohfHjPnUsvQkdSULmgoFyGKU6cTNyzHAa Dk1zXUHJEPssH0HJaxvk5FeTlMA+8XuUq+aKkJDSk0ZRexNh7eEBzFWhYkEGPn+sZbVU 2fL5bwyCW8C88fmumiPLLTn85g6YRqrcW25DUxECbxXSfIhyViGjsV+N2FAf4GaasWir SLndrwgRe6QMfSf5tfwoWDXHH8bSCpmYBd8yG9g3AqkXUL5R3jZM6j3noOephxpBpDAs XWPw== Received: by 10.60.0.195 with SMTP id 3mr219207oeg.2.1331674102194; Tue, 13 Mar 2012 14:28:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.38.170 with HTTP; Tue, 13 Mar 2012 14:28:02 -0700 (PDT) From: Ali Basiri Date: Tue, 13 Mar 2012 14:28:02 -0700 Message-ID: Subject: Composite Key Query in CLI To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1ede0d1600c04bb268912 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1ede0d1600c04bb268912 Content-Type: text/plain; charset=ISO-8859-1 Hey, I'm have a set of composite keys with data and trying to query them through the CLI. However, the result set returned is always empty. The schema is like this: ColumnFamily: Routes Key Validation Class: org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.TimeUUIDType,org.apache.cassandra.db.marshal.IntegerType) Default column value validator: org.apache.cassandra.db.marshal.UTF8Type Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type Row Cache Provider: org.apache.cassandra.cache.ConcurrentLinkedHashCacheProvider ... The Data: ------------------- RowKey: fd24a000-6d51-11e1-a260-109addb27473:4 => (column=enabled, value=true, timestamp=1331673484419000) => (column=providerId, value=0575af10-6d52-11e1-a260-109addb27473, timestamp=1331673484419001) ------------------- RowKey: fd24a000-6d51-11e1-a260-109addb27473:5 => (column=enabled, value=true, timestamp=1331673476181000) => (column=providerId, value=0086b6c0-6d52-11e1-a260-109addb27473, timestamp=1331673476181001) ------------------- The Query: > get Routes['fd24a000-6d51-11e1-a260-109addb27473:4']; Returned 0 results. Elapsed time: 4 msec(s). The cli correctly identifies the composite key types if I type them wrong. >From example an 'a' instead of the '4'. What am I doing wrong? Thanks. --e89a8fb1ede0d1600c04bb268912 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey,

I'm have a set of composite keys with data and = trying to query them through the CLI. However, the result set returned is a= lways empty.

The schema is like this:

=A0 =A0ColumnFamily: Routes
=A0 =A0 =A0 Key V= alidation Class: org.apache.cassandra.db.marshal.CompositeType(org.apache.c= assandra.db.marshal.TimeUUIDType,org.apache.cassandra.db.marshal.IntegerTyp= e)
=A0 =A0 =A0 Default column value validator: org.apache.cassandra.db.ma= rshal.UTF8Type
=A0 =A0 =A0 Columns sorted by: org.apache.cassandr= a.db.marshal.UTF8Type
=A0=A0 =A0 =A0Row Cache Provider: org.apach= e.cassandra.cache.ConcurrentLinkedHashCacheProvider
=A0 =A0 =A0 ...

The Data:
---= ----------------
RowKey: fd24a000-6d51-11e1-a260-109addb2747= 3:4
=3D> (column=3Denabled, value=3Dtrue, timestamp=3D13316734= 84419000)
=3D> (column=3DproviderId, value=3D0575af10-6d52-11e1-a260-109addb2= 7473, timestamp=3D1331673484419001)
-------------------
RowKey: fd24a000-6d51-11e1-a260-109addb27473:5
=3D> (column= =3Denabled, value=3Dtrue, timestamp=3D1331673476181000)
=3D> (column=3DproviderId, value=3D0086b6c0-6d52-11e1-a260-109addb2= 7473, timestamp=3D1331673476181001)
-------------------


The Query:
> =A0get Route= s['fd24a000-6d51-11e1-a260-109addb27473:4'];
Returned 0 results.
Elapsed time: 4 msec(s).

<= /div>
The cli correctly identifies the composite key types if I type th= em wrong. From example an 'a' instead of the '4'.

What am I doing wrong?

Thanks.=
--e89a8fb1ede0d1600c04bb268912--