cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Patterson (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-4689) Log error when using IN together with ORDER BY
Date Wed, 19 Sep 2012 14:58:07 GMT
Tyler Patterson created CASSANDRA-4689:

             Summary: Log error when using IN together with ORDER BY
                 Key: CASSANDRA-4689
             Project: Cassandra
          Issue Type: Bug
         Environment: built from source on cassandra-1.1 (b43cc362aa568a46bc53e545c68518b0bd350b76)
os: ubuntu
            Reporter: Tyler Patterson
            Assignee: Pavel Yaskevich

$ bin/cqlsh -3
Connected to Test Cluster at localhost:9160.
[cqlsh 2.2.0 | Cassandra 1.1.5-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.32.0]
Use HELP for help.
cqlsh> use ks;
cqlsh:ks> drop TABLE test;
cqlsh:ks> CREATE TABLE test (my_id varchar, time_id uuid, value int, PRIMARY KEY (my_id,
cqlsh:ks> INSERT INTO test (my_id, time_id, value) VALUES ('key1', 1, 1);
cqlsh:ks> INSERT INTO test (my_id, time_id, value) VALUES ('key2', 2, 2);
cqlsh:ks> select * from test where my_id in('key1', 'key2') order by time_id;
TSocket read 0 bytes

The log shows this:
ERROR [Thrift:5] 2012-09-19 08:44:59,859 (line 204) Error occurred
during processing of message.
java.lang.IllegalArgumentException: Column time_id wasn't found in select clause.
	at org.apache.cassandra.cql3.statements.SelectStatement.getColumnPositionInSelect(
	at org.apache.cassandra.cql3.statements.SelectStatement.orderResults(
	at org.apache.cassandra.cql3.statements.SelectStatement.process(
	at org.apache.cassandra.cql3.statements.SelectStatement.execute(
	at org.apache.cassandra.cql3.QueryProcessor.processStatement(
	at org.apache.cassandra.cql3.QueryProcessor.process(
	at org.apache.cassandra.thrift.CassandraServer.execute_cql_query(
	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(
	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(
	at org.apache.thrift.ProcessFunction.process(
	at org.apache.thrift.TBaseProcessor.process(
	at org.apache.cassandra.thrift.CustomTThreadPoolServer$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

NOTE: This issue appears similar to from
the user perspective, even though 4612 was verified as fixed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message