cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5610) ORDER BY desc breaks cqlsh COPY
Date Mon, 03 Jun 2013 21:56:22 GMT

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

Brandon Williams commented on CASSANDRA-5610:
---------------------------------------------

+1
                
> ORDER BY desc breaks cqlsh COPY
> -------------------------------
>
>                 Key: CASSANDRA-5610
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5610
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Jeremiah Jordan
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.2.6
>
>         Attachments: 5610.txt
>
>
> If you have a reversed text field, COPY chokes on it because the type is
> "'org.apache.cassandra.db.marshal.ReversedType'<text>" not just 'text' so the strings
don't get quoted in the generated CQL.
> {noformat}
>     def do_import_row(self, columns, nullval, layout, row):
>         rowmap = {}
>         for name, value in zip(columns, row):
>             if value != nullval:
>                 type = layout.get_column(name).cqltype.cql_parameterized_type()
>                 if type in ('ascii', 'text', 'timestamp', 'inet'):
>                     rowmap[name] = self.cql_protect_value(value)
>                 else:
>                     rowmap[name] = value
>             else:
>                 rowmap[name] = 'null'
>         return self.do_import_insert(layout, rowmap)
> {noformat}

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