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 0D6061140F for ; Fri, 1 Aug 2014 23:21:40 +0000 (UTC) Received: (qmail 58024 invoked by uid 500); 1 Aug 2014 23:21:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 57999 invoked by uid 500); 1 Aug 2014 23:21:39 -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 57964 invoked by uid 99); 1 Aug 2014 23:21:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2014 23:21:39 +0000 Date: Fri, 1 Aug 2014 23:21:39 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7672) user types allow counters 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-7672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Yeschenko updated CASSANDRA-7672: ----------------------------------------- Attachment: 7672.txt > user types allow counters > ------------------------- > > Key: CASSANDRA-7672 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7672 > Project: Cassandra > Issue Type: Bug > Reporter: Russ Hatch > Assignee: Aleksey Yeschenko > Fix For: 2.1.0 > > Attachments: 7672.txt > > > From the conversation on CASSANDRA-6312 it seems we should not allow user types to contain counters. Presently, user types can be defined with field types of counter, and these user types can also be associated with tables without error. > I'm not certain if there's a compelling case for counters within user types, but I don't think there's any syntax existing presently that would allow updating them anyway. > To repro: > {noformat} > CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true; > USE test; > CREATE TYPE t_item ( > sub_one counter > ); > CREATE TYPE item ( > sub_one counter > ); > CREATE TABLE test.mytable ( > value1 text PRIMARY KEY, > item t_item, > value2 text > ); > cqlsh:test> insert into mytable (value1, value2) VALUES ( 'foo', 'bar'); > cqlsh:test> select * from mytable; > value1 | item | value2 > --------+------+-------- > foo | null | bar > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)