[ 
https://issues.apache.org/jira/browse/CASSANDRA-9556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15013348#comment-15013348
 ] 

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 Integer. 

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(SimpleDateSerializer.java:34)
        at 
org.apache.cassandra.db.marshal.AbstractType.decompose(AbstractType.java:84)
        at 
org.apache.cassandra.stress.generate.PartitionIterator.seed(PartitionIterator.java:724)
        at 
org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.fill(PartitionIterator.java:596)
        at 
org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.advance(PartitionIterator.java:557)
        at 
org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.seek(PartitionIterator.java:431)
        at 
org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.reset(PartitionIterator.java:267)
        at 
org.apache.cassandra.stress.generate.PartitionIterator.reset(PartitionIterator.java:107)
        at org.apache.cassandra.stress.Operation.reset(Operation.java:124)
        at org.apache.cassandra.stress.Operation.ready(Operation.java:107)
        at 
org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:301)



> Add newer data types to cassandra stress (e.g. decimal, dates, UDTs)
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-9556
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9556
>             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
(v6.3.4#6332)

Reply via email to