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 07D1C185CD for ; Fri, 17 Jul 2015 14:56:05 +0000 (UTC) Received: (qmail 45229 invoked by uid 500); 17 Jul 2015 14:56:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 45195 invoked by uid 500); 17 Jul 2015 14:56:04 -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 45180 invoked by uid 99); 17 Jul 2015 14:56:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2015 14:56:04 +0000 Date: Fri, 17 Jul 2015 14:56:04 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9838) Unable to update an element in a static list 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-9838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631429#comment-14631429 ] Tyler Hobbs commented on CASSANDRA-9838: ---------------------------------------- I think we recently changed the error message around that, which would explain why you are seeing a slightly different error. Regardless, this should be working (especially since the same thing works for non-static columns), so it's definitely a bug. > Unable to update an element in a static list > -------------------------------------------- > > Key: CASSANDRA-9838 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9838 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: Cassandra 2.1.5 on Linux > Reporter: Mahesh Datt > Fix For: 2.1.x > > > I created a table in cassandra (my_table) which has a static list column sizes_list. > I created a new row and initialized the list sizes_list as having one element. > {{UPDATE my_table SET sizes_list = sizes_list + [0] WHERE view_id = 0x01}} > Now I m trying to update the element at index '0' with a statement like this > {code}insert into my_table (my_id, is_deleted , col_id1, col_id2) values (0x01, False, 0x00, 0x00); > UPDATE my_table SET sizes_list[0] = 100 WHERE my_id = 0x01 ; > {code} > Now I see an error like this: > {{InvalidRequest: code=2200 [Invalid query] message="List index 0 out of bound, list has size 0"}} > If I change my list to a non-static list, it works fine! -- This message was sent by Atlassian JIRA (v6.3.4#6332)