Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 55DB21038E for ; Fri, 12 Jul 2013 15:14:12 +0000 (UTC) Received: (qmail 92790 invoked by uid 500); 12 Jul 2013 15:14:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 92035 invoked by uid 500); 12 Jul 2013 15:14:09 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 91903 invoked by uid 99); 12 Jul 2013 15:14:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 15:14:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shahab.yunus@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bk0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 15:14:03 +0000 Received: by mail-bk0-f52.google.com with SMTP id d7so3787450bkh.39 for ; Fri, 12 Jul 2013 08:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wH1vFwEDUepWznc3syb8uTS4jr6eh7zb2+fj/ss3r9M=; b=d3cdi3T9ojOf2wAWRAJTh/kK7qVboke/M8ATDsdH++JSAQgRj0o1leKJ59ewTBOGiS BbOi39XhM1Sf4iJd9D7QDLXFsQeLc9dYfpO1PhcDvYoZTtu8uYZYOFYQhx2JivYSPjkQ hFaJElKziGnpwrj9a7HXSpaN0P2/P2zUv9J60kYXq86x+c27dhwyStOZmzGQ3YAtuKBA RAVzTPM7PhyI0drgI/FBAcxY2GHrWR9SIx1VzR/NwMmDaEVPwjq9gu45phE1dbc/QM4g gsfr6mMaU3T6hHLwB0cquE/aiB2kziKHHI4CuTyYcXhCZYiFdP/ZOuNqB96UUV/2o7mp tGhg== MIME-Version: 1.0 X-Received: by 10.204.231.137 with SMTP id jq9mr6512409bkb.150.1373642021964; Fri, 12 Jul 2013 08:13:41 -0700 (PDT) Received: by 10.204.188.71 with HTTP; Fri, 12 Jul 2013 08:13:41 -0700 (PDT) Date: Fri, 12 Jul 2013 11:13:41 -0400 Message-ID: Subject: Representation of dynamically added columns in table (column family) schema using cqlsh From: Shahab Yunus To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=485b3979db80c4bef404e151f478 X-Virus-Checked: Checked by ClamAV on apache.org --485b3979db80c4bef404e151f478 Content-Type: text/plain; charset=ISO-8859-1 A basic question and it seems that I have a gap in my understanding. I have a simple table in Cassandra with multiple column families. I add new columns to each of these column families on the fly. When I view (using the 'DESCRIBE table' command) the schema of a particular column family, I see only one entry for column (bolded below). What is the reason for that? The column that I am adding have string names and byte values, written using Hector 1.1-3 ( HFactory.createColumn(...) method). CREATE TABLE mytable ( key text, *column1* ascii, value blob, PRIMARY KEY (key, column1) ) WITH COMPACT STORAGE AND bloom_filter_fp_chance=0.010000 AND caching='KEYS_ONLY' AND comment='' AND dclocal_read_repair_chance=0.000000 AND gc_grace_seconds=864000 AND read_repair_chance=1.000000 AND replicate_on_write='true' AND populate_io_cache_on_flush='false' AND compaction={'class': 'SizeTieredCompactionStrategy'} AND compression={'sstable_compression': 'SnappyCompressor'}; cqlsh 3.0.2 Cassandra 1.2.5 CQL spec 3.0.0 Thrift protocol 19.36.0 Given this, I can also only query on this one column1 or value using the 'SELECT' statement. The OpsCenter on the other hand, displays multiple columns as expected. Basically the demarcation of multiple columns i clearer. Thanks a lot. Regards, Shahab --485b3979db80c4bef404e151f478 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
A basic question and it seems that I have a gap in my unde= rstanding.

I have a simple table in Cassandra with multi= ple column families. I add new columns to each of these column families on = the fly. When I view (using the 'DESCRIBE table' command) the schem= a of a particular column family, I see only one entry for column (bolded be= low). What is the reason for that? The column that I am adding have string = names and byte values, written using Hector=A01.1-3 (
HFactory.createColumn(...) method).

CREATE TABLE my= table (
=A0 key text,
=A0 column1= ascii,
=A0 value blob,
=A0 PRIMARY KEY (key, column1)<= /div>
) WITH COMPACT STORAGE AND
=A0 bloom_filter_fp_chance=3D0.01= 0000 AND
=A0 caching=3D'KEYS_ONLY' AND
=A0 comm= ent=3D'' AND
=A0 dclocal_read_repair_chance=3D0.000000 AN= D
=A0 gc_grace_seconds=3D864000 AND
=A0 read_repair_chance=3D1.0000= 00 AND
=A0 replicate_on_write=3D'true' AND
=A0 = populate_io_cache_on_flush=3D'false' AND
=A0 compaction= =3D{'class': 'SizeTieredCompactionStrategy'} AND
=A0 compression=3D{'sstable_compression': 'SnappyCompresso= r'};

cqlsh 3.0.2=A0
Cassandra 1= .2.5
CQL spec 3.0.0
Thrift protocol 19.36.0
=


Given this, I can also only query on th= is one column1 or value using the 'SELECT' statement.

The OpsCenter on the other hand, displays multiple = columns as expected.=A0Basically=A0the demarcation of multiple columns i cl= earer.

Thanks a lot.

Regards,
Shahab
--485b3979db80c4bef404e151f478--