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 A6389109F6 for ; Tue, 5 Nov 2013 11:50:03 +0000 (UTC) Received: (qmail 35977 invoked by uid 500); 5 Nov 2013 11:49:32 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 35916 invoked by uid 500); 5 Nov 2013 11:49:30 -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 35664 invoked by uid 99); 5 Nov 2013 11:49:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 11:49:20 +0000 Date: Tue, 5 Nov 2013 11:49:20 +0000 (UTC) From: "Lyuben Todorov (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6300) the problem of column family and table use compositetype as row key 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-6300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyuben Todorov updated CASSANDRA-6300: -------------------------------------- Description: h4.The following two scripts 's content is the same but use cassandra-cli and cql. h4.cassandra-cli script is : {quote} create column family gameinfo with comparator = 'UTF8Type' and key_validation_class = 'CompositeType(UTF8Type, UTF8Type)' AND default_validation_class = UTF8Type and column_metadata=[{column_name: ltype, validation_class: UTF8Type}] with read_repair_chance=0.1 and dclocal_read_repair_chance=0.5; {quote} h4.cql script is : {quote} CREATE TABLE gameinfo ( key1 text, key2 text, ltype text PRIMARY KEY ((key1, key2)) ) ; {quote} h4.I can insert data use compositetype as row key when using cassandra-cli script, but failed using the cql script. h4.So, I think this maybe a bug. was: h4.The following two scripts 's content is the same but use cassandra-cli and cql. h4.cassandra-cli script is : {quote} create column family gameinfo with comparator = 'UTF8Type' and key_validation_class = 'CompositeType(UTF8Type, UTF8Type)' AND default_validation_class = UTF8Type and column_metadata=[{column_name: ltype, validation_class: UTF8Type}] with read_repair_chance=0.1 and dclocal_read_repair_chance=0.5; {quote} h4.cql script is : {quote} CREATE TABLE gameinfo ( key1 text, key2 text, ltype text PRIMARY KEY ((key1, key2)) ) ; {quote} h4.I can insert data use compositetpye as row key when using cassandra-cli script, but failed using the cql script. h4.So, I think this maybe a bug. > the problem of column family and table use compositetype as row key > ------------------------------------------------------------------- > > Key: CASSANDRA-6300 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6300 > Project: Cassandra > Issue Type: Bug > Components: API > Environment: cassandra2.0.1 and hector > Reporter: nivance > Labels: compositeColumns > > h4.The following two scripts 's content is the same but use cassandra-cli and cql. > h4.cassandra-cli script is : > {quote} > create column family gameinfo with comparator = 'UTF8Type' > and key_validation_class = 'CompositeType(UTF8Type, UTF8Type)' > AND default_validation_class = UTF8Type > and column_metadata=[{column_name: ltype, validation_class: UTF8Type}] > with read_repair_chance=0.1 > and dclocal_read_repair_chance=0.5; > {quote} > h4.cql script is : > {quote} > CREATE TABLE gameinfo ( > key1 text, > key2 text, > ltype text > PRIMARY KEY ((key1, key2)) > ) ; > {quote} > h4.I can insert data use compositetype as row key when using cassandra-cli script, but failed using the cql script. > h4.So, I think this maybe a bug. -- This message was sent by Atlassian JIRA (v6.1#6144)