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 057689CB3 for ; Mon, 4 Mar 2013 11:51:43 +0000 (UTC) Received: (qmail 7025 invoked by uid 500); 4 Mar 2013 11:39:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 6996 invoked by uid 500); 4 Mar 2013 11:39:14 -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 6935 invoked by uid 99); 4 Mar 2013 11:39:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2013 11:39:13 +0000 Date: Mon, 4 Mar 2013 11:39:12 +0000 (UTC) From: "Jayadevan (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-5309) Issue in cassandra-cli and cqlsh 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-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jayadevan updated CASSANDRA-5309: --------------------------------- Description: If I create a table using cqlsh, that table does not show when I do a describe in cassandra-cli. For example, I create a table in cqlsh. cqlsh:system> CREATE KEYSPACE testkp WITH replication = {'class':'SimpleStrategy', 'replication_factor':2}; cqlsh:testkp> CREATE TABLE test ( ... k int PRIMARY KEY, ... v1 int, ... v2 int ... ); cqlsh:testkp> In cassandra-cli, I get this [default@testkp] show schema; create keyspace testkp with placement_strategy = 'SimpleStrategy' and strategy_options = {replication_factor : 2} and durable_writes = true; use testkp; [default@testkp] describe; Keyspace: testkp: Replication Strategy: org.apache.cassandra.locator.SimpleStrategy Durable Writes: true Options: [replication_factor:2] Column Families: No Column Family is show. But if I do [default@testkp] create column family test; Cannot add already existing column family "test" to keyspace "testkp" [default@testkp] list test; Using default limit of 100 Using default column limit of 100 ------------------- RowKey: 1 => (column=, value=, timestamp=1362395851188000) => (column=v1, value=00000002, timestamp=1362395851188000) => (column=v2, value=00000003, timestamp=1362395851188000) 1 Row Returned. Elapsed time: 105 msec(s). So obviously the table/column family is there. was: If I create a tabel using cqlsh, that table does not show when I do a describe in cassandra-cli. For example, I create a table in cqlsh. cqlsh:system> CREATE KEYSPACE testkp WITH replication = {'class':'SimpleStrategy', 'replication_factor':2}; cqlsh:testkp> CREATE TABLE test ( ... k int PRIMARY KEY, ... v1 int, ... v2 int ... ); cqlsh:testkp> In cassandra-cli, I get this [default@testkp] show schema; create keyspace testkp with placement_strategy = 'SimpleStrategy' and strategy_options = {replication_factor : 2} and durable_writes = true; use testkp; [default@testkp] describe; Keyspace: testkp: Replication Strategy: org.apache.cassandra.locator.SimpleStrategy Durable Writes: true Options: [replication_factor:2] Column Families: No Column Family is show. But if I do [default@testkp] create column family test; Cannot add already existing column family "test" to keyspace "testkp" [default@testkp] list test; Using default limit of 100 Using default column limit of 100 ------------------- RowKey: 1 => (column=, value=, timestamp=1362395851188000) => (column=v1, value=00000002, timestamp=1362395851188000) => (column=v2, value=00000003, timestamp=1362395851188000) 1 Row Returned. Elapsed time: 105 msec(s). So obviously the table/column family is there. > Issue in cassandra-cli and cqlsh > -------------------------------- > > Key: CASSANDRA-5309 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5309 > Project: Cassandra > Issue Type: Bug > Components: Tools > Affects Versions: 1.2.0 > Environment: Linus (CentOS), 64 bit. > Reporter: Jayadevan > Priority: Minor > Fix For: 1.2.0 > > > If I create a table using cqlsh, that table does not show when I do a describe in cassandra-cli. For example, I create a table in cqlsh. > cqlsh:system> CREATE KEYSPACE testkp WITH replication = {'class':'SimpleStrategy', 'replication_factor':2}; > cqlsh:testkp> CREATE TABLE test ( > ... k int PRIMARY KEY, > ... v1 int, > ... v2 int > ... ); > cqlsh:testkp> > In cassandra-cli, I get this > [default@testkp] show schema; > create keyspace testkp > with placement_strategy = 'SimpleStrategy' > and strategy_options = {replication_factor : 2} > and durable_writes = true; > use testkp; > [default@testkp] describe; > Keyspace: testkp: > Replication Strategy: org.apache.cassandra.locator.SimpleStrategy > Durable Writes: true > Options: [replication_factor:2] > Column Families: > No Column Family is show. But if I do > [default@testkp] create column family test; > Cannot add already existing column family "test" to keyspace "testkp" > [default@testkp] list test; > Using default limit of 100 > Using default column limit of 100 > ------------------- > RowKey: 1 > => (column=, value=, timestamp=1362395851188000) > => (column=v1, value=00000002, timestamp=1362395851188000) > => (column=v2, value=00000003, timestamp=1362395851188000) > 1 Row Returned. > Elapsed time: 105 msec(s). > So obviously the table/column family is there. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira