cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul cannon (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3770) Timestamp datatype in CQL gets weird value?
Date Thu, 01 Mar 2012 21:01:57 GMT

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

paul cannon commented on CASSANDRA-3770:
----------------------------------------

For the supported timestamp/date formats, see http://www.datastax.com/docs/1.0/references/cql/index#working-with-dates-and-times
.
                
> Timestamp datatype in CQL gets weird value?
> -------------------------------------------
>
>                 Key: CASSANDRA-3770
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3770
>             Project: Cassandra
>          Issue Type: New Feature
>         Environment: MacOS, Java
>            Reporter: Jawahar Prasad JP
>            Priority: Minor
>              Labels: cql, java
>             Fix For: 1.2
>
>
> Hi..
> I have created a columnfamily through CQL, having datatype as timestamp,
> I generate timestamp like this in Java:
> System.currentTimeMillis()
> (or)
> System.currentTimeMillis()*1000
> When I see the output through CQL, I get the data like below:
> 1.32725062505e+12
> Also, I am not able to use any operators against this (like > '01 January 2012' etc.,),
I get the below error:
> No indexed columns present in by-columns clause with "equals" operator
> But, I have created an index for the timestamp column.
> Any help ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message