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

Benjamin Lerer commented on CASSANDRA-9556:
-------------------------------------------

[~jasonstack]
Sorry for not responding sooner.

What you could try is to generate integers but convert them in 
{{SchemaStatement.bindRow}} as it is the place where the data will be fed into 
the java driver. In the constructor you can have access to the 
{{ColumnDefinitions.Definition}} and from there to the {{DataType}}.
If the DataType is the one for {{SimpleDate}} you can convert your data before 
feeding it to the driver. 

Do not forget to check that everything works also fine with thrift. 

> 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