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

Stefania commented on CASSANDRA-10839:
--------------------------------------

Confirmed as a problem on 2.1 HEAD with python 2.6 only. 

There isn't a documented dependency but we have unofficially supported python 
2.6 until now and the decision so far has been to continue doing so but only in 
2.1. Starting with 2.2 we require 2.7.

It seems {{binascii.hexlify}} does not accept byte arrays in python 2.6. 

2.1 patch and CI:

|[patch|https://github.com/stef1927/cassandra/commits/10839-2.1]|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-10839-2.1-dtest/]|

[~mambocab] are you OK to review this?


> cqlsh failed to format value bytearray
> --------------------------------------
>
>                 Key: CASSANDRA-10839
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10839
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Severin Leonhardt
>            Assignee: Stefania
>            Priority: Minor
>             Fix For: 2.1.x
>
>
> 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)

Reply via email to