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 9B3DEDB47 for ; Tue, 26 Jun 2012 17:11:45 +0000 (UTC) Received: (qmail 46206 invoked by uid 500); 26 Jun 2012 17:11:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 46152 invoked by uid 500); 26 Jun 2012 17:11:45 -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 46055 invoked by uid 99); 26 Jun 2012 17:11:45 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 17:11:45 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 8597914284B for ; Tue, 26 Jun 2012 17:11:44 +0000 (UTC) Date: Tue, 26 Jun 2012 17:11:44 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <163398392.57253.1340730704549.JavaMail.jiratomcat@issues-vm> In-Reply-To: <967026758.57162.1340729084864.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (CASSANDRA-4377) CQL3 column value validation bug 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-4377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-4377: -------------------------------------- Assignee: Sylvain Lebresne > CQL3 column value validation bug > -------------------------------- > > Key: CASSANDRA-4377 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4377 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.1.1 > Reporter: Nick Bailey > Assignee: Sylvain Lebresne > Fix For: 1.1.2 > > > {noformat} > cqlsh> create keyspace test with strategy_class = 'SimpleStrategy' and strategy_options:replication_factor = 1; > cqlsh> use test; > cqlsh:test> CREATE TABLE stats ( > ... gid blob, > ... period int, > ... tid blob, > ... sum int, > ... uniques blob, > ... PRIMARY KEY(gid, period, tid) > ... ); > cqlsh:test> describe columnfamily stats; > CREATE TABLE stats ( > gid blob PRIMARY KEY > ) WITH > comment='' AND > comparator='CompositeType(org.apache.cassandra.db.marshal.Int32Type,org.apache.cassandra.db.marshal.BytesType,org.apache.cassandra.db.marshal.UTF8Type)' AND > read_repair_chance=0.100000 AND > gc_grace_seconds=864000 AND > default_validation=text AND > min_compaction_threshold=4 AND > max_compaction_threshold=32 AND > replicate_on_write='true' AND > compaction_strategy_class='SizeTieredCompactionStrategy' AND > compression_parameters:sstable_compression='SnappyCompressor'; > {noformat} > You can see in the above output that the stats cf is created with the column validator set to text, but neither of the non primary key columns defined are text. It should either be setting metadata for those columns or not setting a default validator or some combination of the two. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira