Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20F7AD247 for ; Wed, 26 Sep 2012 12:39:11 +0000 (UTC) Received: (qmail 75286 invoked by uid 500); 26 Sep 2012 12:39:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 75037 invoked by uid 500); 26 Sep 2012 12:39:08 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 74936 invoked by uid 99); 26 Sep 2012 12:39:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 12:39:07 +0000 Date: Wed, 26 Sep 2012 23:39:07 +1100 (NCT) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: <436203743.127975.1348663147829.JavaMail.jiratomcat@arcas> In-Reply-To: <1757099459.123486.1348592168113.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CASSANDRA-4717) cqlsh fails to format values of ReversedType-wrapped classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463757#comment-13463757 ] Sylvain Lebresne commented on CASSANDRA-4717: --------------------------------------------- bq. Is cql3 not giving back the "base" type in resultset info? If not I think that should be addressed server-side. It's not currently but that's definitively an oversight. I'll fix it (and thus CASSANDRA-4715 is a dupe). That being said, I'm fine committing Paul's patch in the meantime to solve the issue for cql2, but there seems to be some kind of mess in the cqlsh sources on the cassandra-1.1 as both displaying.py and formatting.py are missing (as shown here: https://github.com/apache/cassandra/tree/cassandra-1.1/pylib/cqlshlib; trunk is fine). > 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