cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-2508) missing imports in CQL Python driver
Date Tue, 19 Apr 2011 20:14:05 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-2508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis updated CASSANDRA-2508:
--------------------------------------

    Attachment: 2508.txt

bq. python -c 'from cql import DateFromTicks; DateFromTicks(1)'

fixed

bq. cql.connection is missing an import of AuthenticationRequest from ttypes

fixed

bq. NotSupportedError

changed to builtin NotImplementedError

bq. InternalError

ttypes InternalError should be internal errors on the server; change this to a no-op (in the
case of repeated closes) and ValueError (in the case of operation-on-closed-handle), which
match the behavior of the file class.

bq. marshal.unmarshal_long has a NameError waiting to happen in the form of "unpack"

fixed, and also pulled the if out of the unmarshal definition to only execute once.

> missing imports in CQL Python driver
> ------------------------------------
>
>                 Key: CASSANDRA-2508
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2508
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Eric Evans
>              Labels: cql
>             Fix For: 0.8
>
>         Attachments: 2508.txt
>
>
> Try:
> bq. cd drivers/py && python -c 'from cql import DateFromTicks; DateFromTicks(1)'
> Also:
> {{cql.connection}} is missing an import of {{AuthenticationRequest}} from {{ttypes}},
and the exceptions {{NotSupportedError}}, and {{InternalError}}.
> Also:
> {{marshal.unmarshal_long}} has a NameError waiting to happen in the form of "unpack"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message