Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1FD6100ED for ; Tue, 25 Nov 2014 20:58:12 +0000 (UTC) Received: (qmail 39963 invoked by uid 500); 25 Nov 2014 20:58:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 39932 invoked by uid 500); 25 Nov 2014 20:58:12 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 39840 invoked by uid 99); 25 Nov 2014 20:58:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 20:58:12 +0000 Date: Tue, 25 Nov 2014 20:58:12 +0000 (UTC) From: "Philip Thompson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8372) cqlsh - throws TypeError on SELECT of a map with blob keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Philip Thompson updated CASSANDRA-8372: --------------------------------------- Assignee: Tyler Hobbs > 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 > Assignee: Tyler Hobbs > Priority: Minor > Labels: cqlsh > Fix For: 2.1.3 > > > CREATE TABLE users (user_id bigint PRIMARY KEY, config map); > 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)