cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul cannon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4717) cqlsh fails to format values of ReversedType-wrapped classes
Date Tue, 25 Sep 2012 17:22:09 GMT

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

paul cannon commented on CASSANDRA-4717:
----------------------------------------

I'm not sure whether it's better for the thrift interface to include ReversedType in the resultset
or not, but the cql library can handle it either way. And this fix for cqlsh is pretty simple
too.

If you do want to change the interface so that ReversedType doesn't get reported, then 4715
probably is a dupe. Otherwise, it's a different problem with a different solution.

This isn't specific to cql2.
                
> cqlsh fails to format values of ReversedType-wrapped classes
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-4717
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4717
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1.0
>            Reporter: paul cannon
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.6
>
>         Attachments: 4717.patch.txt, 4717-test.patch.txt
>
>
> See the test case for CASSANDRA-4715, but run it on trunk. The ReversedType-wrapped column
(rdate) will be displayed as a floating-point integer (it gets deserialized into a native
type correctly, but cqlsh's format-according-to-type machinery doesn't know how to handle
the cqltypes.ReversedType subclass.

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