cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Sadler (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-4291) Oversize integer in CQL throws NumberFormatException
Date Sun, 27 May 2012 06:09:22 GMT
Scott Sadler created CASSANDRA-4291:

             Summary: Oversize integer in CQL throws NumberFormatException
                 Key: CASSANDRA-4291
             Project: Cassandra
          Issue Type: Bug
          Components: API
            Reporter: Scott Sadler
            Priority: Minor

In CQL, the parser does not handle an oversize Integer, the client socket get closed and an
exception is output in the log.

{noformat}cqlsh:TEST1> select count(*) from Items limit 10000000000000;
TSocket read 0 bytes
cqlsh:TEST1> select count(*) from Items limit 1;
TSocket read 0 bytes{noformat}

ERROR 02:51:28,600 Error occurred during processing of message.
java.lang.NumberFormatException: For input string: "10000000000"
	at java.lang.NumberFormatException.forInputString(
	at java.lang.Integer.parseInt(
	at java.lang.Integer.parseInt(
	at org.apache.cassandra.cql.CqlParser.selectStatement(
	at org.apache.cassandra.cql.CqlParser.query(
	at org.apache.cassandra.cql.QueryProcessor.getStatement(
	at org.apache.cassandra.cql.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$

The INTEGER type in Cql.g matches digits but not to any particular limit.

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


View raw message