cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Basiri <abass...@gmail.com>
Subject Composite Key Query in CLI
Date Tue, 13 Mar 2012 21:28:02 GMT
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.

Mime
View raw message