cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert McLaughlin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10839) cqlsh failed to format value bytearray
Date Mon, 14 Dec 2015 00:54:46 GMT

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

Robert McLaughlin commented on CASSANDRA-10839:
-----------------------------------------------

Can reproduce using cassandra 2.1.12 and python 2.6.6

Cannot reproduce using:
* cassandra 2.1.12 and python 2.7.11
* cassandra 2.1.11 and python 2.6.6
* cassandra 2.1.11 and python 2.7.11

The likely cause is [commit 1b629c10|https://github.com/apache/cassandra/commit/1b629c101bbf793f8e248bbf4396bb41adc0af97],
see (new) line 127 in formatting.py

I suspect you are running python 2.6; cassandra requires 2.7 -- please check your python version

> cqlsh failed to format value bytearray
> --------------------------------------
>
>                 Key: CASSANDRA-10839
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10839
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Severin Leonhardt
>            Priority: Minor
>
> Execute the following in cqlsh (5.0.1):
> {noformat}
> > create table test(column blob, primary key(column));
> > insert into test (column) VALUES(0x00);
> > select * from test;
>  column
> --------------------
>  bytearray(b'\x00')
> (1 rows)
> Failed to format value bytearray(b'\x00') : b2a_hex() argument 1 must be string or read-only
buffer, not bytearray
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message