[
https://issues.apache.org/jira/browse/CASSANDRA-8372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14225191#comment-14225191
]
Philip Thompson commented on CASSANDRA-8372:
--------------------------------------------
This is caused by this issue:
https://datastax-oss.atlassian.net/browse/PYTHON-186
We use the DataStax open source Python Driver inside cqlsh. Unfortunately, this
won't be fixed until a new release of that driver comes out with 186 resolved,
and then we consume that release.
> cqlsh - throws TypeError on SELECT of a map with blob keys
> ----------------------------------------------------------
>
> Key: CASSANDRA-8372
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8372
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: Nathan Cormier
> Priority: Minor
> Labels: cqlsh
> Fix For: 2.1.3
>
>
> CREATE TABLE users (user_id bigint PRIMARY KEY, config map<blob, int>);
> INSERT INTO users (user_id, config) VALUES (123, {0xaa: 1});
> SELECT user_id FROM users;
> This works fine.
> SELECT * FROM users;
> Any SELECT with the map field will result in this error:
> {code}
> Traceback (most recent call last):
> File "/usr/local/bin/cqlsh", line 909, in perform_simple_statement
> rows = self.session.execute(statement, trace=self.tracing_enabled)
> File "/Library/Python/2.7/site-packages/cassandra/cluster.py", line 1281,
> in execute
> result = future.result(timeout)
> File "/Library/Python/2.7/site-packages/cassandra/cluster.py", line 2771,
> in result
> raise self._final_exception
> TypeError: unhashable type: 'bytearray'
> {code}
> This is cqlsh version 5.0.1.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)