Brandon Williams created CASSANDRA-5404:
-------------------------------------------
Summary: NPE during cql3 select with token()
Key: CASSANDRA-5404
URL: https://issues.apache.org/jira/browse/CASSANDRA-5404
Project: Cassandra
Issue Type: Bug
Reporter: Brandon Williams
Assignee: Sylvain Lebresne
Fix For: 1.2.4
A query such as: select * from "Standard1" where token(key) >
token(int(3030343330393233)) limit 1;
Produces:
{noformat}
WARN 17:53:44,448 Inputing CLQ3 blobs as strings (like key = '') is now
deprecated and will be removed in a future version. You should convert client
code to use a blob constant (key = 0x) instead (see
http://cassandra.apache.org/doc/cql3/CQL.html changelog section for more info).
ERROR 17:57:52,312 Error occurred during processing of message.
java.lang.NullPointerException
at
org.apache.cassandra.cql3.functions.FunctionCall$Raw.isAssignableTo(FunctionCall.java:135)
at
org.apache.cassandra.cql3.functions.Functions.validateTypes(Functions.java:131)
at org.apache.cassandra.cql3.functions.Functions.get(Functions.java:92)
at
org.apache.cassandra.cql3.functions.FunctionCall$Raw.prepare(FunctionCall.java:103)
at
org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.updateRestriction(SelectStatement.java:1246)
at
org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.prepare(SelectStatement.java:959)
at
org.apache.cassandra.cql3.QueryProcessor.getStatement(QueryProcessor.java:271)
at
org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:140)
at
org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1726)
at
org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4074)
at
org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4062)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
{noformat}
--
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: http://www.atlassian.com/software/jira