cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelley Reynolds (Created) (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-3421) Can create a table with DecimalType comparator but CQL explodes trying to actually use it.
Date Sat, 29 Oct 2011 16:25:32 GMT
Can create a table with DecimalType comparator but CQL explodes trying to actually use it.

                 Key: CASSANDRA-3421
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.0
            Reporter: Kelley Reynolds

CREATE KEYSPACE CassandraCQLTestKeyspace WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy'
AND strategy_options:replication_factor=1

USE CassandraCQLTestKeyspace

CREATE COLUMNFAMILY comparator_cf_decimal (id text PRIMARY KEY) WITH comparator='DecimalType'

INSERT INTO comparator_cf_decimal (id, 15.333) VALUES ('test', 'test')

# This leads to failure
SELECT 15.333 FROM comparator_cf_decimal WHERE id = 'test' 

ERROR 12:22:56,909 Internal error processing execute_cql_query
	at java.nio.Buffer.nextGetIndex(
	at java.nio.HeapByteBuffer.getInt(
	at org.apache.cassandra.cql.jdbc.JdbcDecimal.compose(
	at org.apache.cassandra.db.marshal.DecimalType.compose(
	at java.util.TreeMap.getEntryUsingComparator(
	at java.util.TreeMap.getEntry(
	at java.util.TreeMap.get(
	at org.apache.cassandra.db.TreeMapBackedSortedColumns.getColumn(
	at org.apache.cassandra.db.AbstractColumnContainer.getColumn(
	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.process(
	at org.apache.cassandra.thrift.Cassandra$Processor.process(
	at org.apache.cassandra.thrift.CustomTThreadPoolServer$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

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