cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-6807) Thrift with CQL3 doesn't return key
Date Thu, 06 Mar 2014 16:26:45 GMT


Peter commented on CASSANDRA-6807:

I am using native for some things, but I also want hector to support CQL3.

I am explicitly including the key in the select statement, shouldn't it return the key when
I ask for it? If a user explicitly asks for the key, does it make sense for Cassandra to say
"no you can't have it?"

I'm happy to enhance thrift to return the key, if someone points me in the right direction.


> Thrift with CQL3 doesn't return key
> -----------------------------------
>                 Key: CASSANDRA-6807
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: windows 7 64bit, jdk 1.7, cassandra 2.0.5
>            Reporter: Peter
>         Attachments: thrift-missing-key.png
> I'm working on adding support for CQL3 to Hector and came across an odd issue. I explicitly
include the key in the statement, but the key isn't returned. I've attached a screenshot.
Hector's CqlQuery class is doing the following to issue the cql3 call. I'm hoping it's a simple
configuration detail I'm missing or parameter I need to set.
> result = cassandra.execute_cql3_query(query, useCompression ? Compression.GZIP : Compression.NONE,
> Looking at org.apache.cassandra.thrift.Cassandra.Client, I don't see anything obvious
that would tell me how to tell Cassandra to return the key in the CqlResult or CqlRow. The
queries I tried look like this
> select key from myColFamily;

This message was sent by Atlassian JIRA

View raw message