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 35FF611958 for ; Thu, 22 May 2014 07:21:38 +0000 (UTC) Received: (qmail 41013 invoked by uid 500); 22 May 2014 07:21:38 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 40979 invoked by uid 500); 22 May 2014 07:21:38 -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 40970 invoked by uid 99); 22 May 2014 07:21:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 07:21:38 +0000 Date: Thu, 22 May 2014 07:21:38 +0000 (UTC) From: "Mikhail Stepura (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7267) Embedded sets in user defined data-types are not updating 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-7267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005687#comment-14005687 ] Mikhail Stepura commented on CASSANDRA-7267: -------------------------------------------- {{code}} >>> r = session.execute("select band_info from songs") >>> print r [Row(band_info='\x00\x00\x00\x08\x00\x00\x00\x00\x0b?=\xf0\x00\x00\x00f\x00\x00\x00\x06\x00\x00\x00\x0cAdrian Smith\x00\x00\x00\x0fBruce Dickinson\x00\x00\x00\x0bDave Murray\x00\x00\x00\x0bJanick Gers\x00\x00\x00\rNicko McBrain\x00\x00\x00\x0cSteve Harris\x00\x00\x00\x0fPure evil metal')] >>> r = session.execute("select band_info.members from songs") >>> print r [Row(band_info_members=sortedset())] >>> {{code}} > Embedded sets in user defined data-types are not updating > --------------------------------------------------------- > > Key: CASSANDRA-7267 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7267 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Thomas Zimmer > Assignee: Mikhail Stepura > Labels: cqlsh > Fix For: 2.1 rc1 > > > Hi, > i just played around with Cassandra 2.1.0 beta2 and i might have found an issue with embedded Sets in User Defined Data Types. > Here is how i can reproduce it: > 1.) Create a keyspace "test" > 2.) Create a table like this: > create table songs (title varchar PRIMARY KEY, band varchar, tags Set); > 3.) Create a udt like this: > create type band_info_type (founded timestamp, members Set, description text); > 4.) Try to insert data: > insert into songs (title, band, band_info, tags) values ('The trooper', 'Iron Maiden', {founded:188694000, members: {'Bruce Dickinson', 'Dave Murray', 'Adrian Smith', 'Janick Gers', 'Steve Harris', 'Nicko McBrain'}, description: 'Pure evil metal'}, {'metal', 'england'}); > 5.) Select the data: > select * from songs; > Returns this: > The trooper | Iron Maiden | {founded: '1970-01-03 05:24:54+0100', members: {}, description: 'Pure evil metal'} | {'england', 'metal'} > The embedded data-set seems to empty. I also tried updating a row which also does not seem to work. > Regards, > Thomas -- This message was sent by Atlassian JIRA (v6.2#6252)