cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5928) dateOf() in 2.0 won't work with timestamp columns created in 1.2-
Date Mon, 26 Aug 2013 15:33:55 GMT

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

Sylvain Lebresne commented on CASSANDRA-5928:
---------------------------------------------

You're right, that fixes dateOf (and to be clear, I don't see a clearly much better fix).
The one small concern I have is that because we use asCQL3Type() when printing error message,
we will show "timestamp" when DateType is used even though "timestamp" is really TimestampType
in practice. That being say, I "think" this has no real practical consequence so +1. 
                
> dateOf() in 2.0 won't work with timestamp columns created in 1.2-
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-5928
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5928
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Aleksey Yeschenko
>            Assignee: Aleksey Yeschenko
>              Labels: cql3
>             Fix For: 2.0
>
>         Attachments: 5928.txt
>
>
> dateof() return type is TimestampType now, so it won't work with previously created DateType
columns
> (Type error: cannot assign result of function dateof (type timestamp) to value (type
'org.apache.cassandra.db.marshal.DateType')).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message