Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5404

NPE during cql3 select with token()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.2.4
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      A query such as: select * from "Standard1" where token(key) > token(int(3030343330393233)) limit 1;

      Produces:

       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)
      

        Attachments

        1. 5404.txt
          2 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              brandon.williams Brandon Williams
              Authors:
              Sylvain Lebresne
              Reviewers:
              Brandon Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: