cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ZhaoYang (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9556) Add newer data types to cassandra stress (e.g. decimal, dates, UDTs)
Date Thu, 19 Nov 2015 11:10:11 GMT


ZhaoYang commented on CASSANDRA-9556:

[~blerer]] thanks for the suggestion. I changed Generator.generate's return typt Object, but
eventually LocalDate object will send to SimpleDateSerializer.serialize(), again expects a

Here is the stack trace:
Exception in thread "Thread-2" java.lang.ClassCastException: com.datastax.driver.core.LocalDate
cannot be cast to java.lang.Integer
	at org.apache.cassandra.serializers.SimpleDateSerializer.serialize(
	at org.apache.cassandra.db.marshal.AbstractType.decompose(
	at org.apache.cassandra.stress.generate.PartitionIterator.seed(
	at org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.fill(
	at org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.advance(
	at org.apache.cassandra.stress.generate.PartitionIterator$
	at org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.reset(
	at org.apache.cassandra.stress.generate.PartitionIterator.reset(
	at org.apache.cassandra.stress.Operation.reset(
	at org.apache.cassandra.stress.Operation.ready(
	at org.apache.cassandra.stress.StressAction$

> Add newer data types to cassandra stress (e.g. decimal, dates, UDTs)
> --------------------------------------------------------------------
>                 Key: CASSANDRA-9556
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Jeremy Hanna
>            Assignee: ZhaoYang
>            Priority: Minor
>              Labels: stress
> Currently you can't define a data model with decimal types and use Cassandra stress with
it.  Also, I imagine that holds true with other newer data types such as the new date and
time types.  Besides that, now that data models are including user defined types, we should
allow users to create those structures with stress as well.  Perhaps we could split out the
UDTs into a different ticket if it holds the other types up.

This message was sent by Atlassian JIRA

View raw message