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 EDB2465E9 for ; Thu, 26 May 2011 16:04:28 +0000 (UTC) Received: (qmail 16809 invoked by uid 500); 26 May 2011 16:04:28 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 16784 invoked by uid 500); 26 May 2011 16:04:28 -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 16776 invoked by uid 99); 26 May 2011 16:04:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2011 16:04:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2011 16:04:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A3ED9E0C32 for ; Thu, 26 May 2011 16:03:47 +0000 (UTC) Date: Thu, 26 May 2011 16:03:47 +0000 (UTC) From: "David Boxenhorn (JIRA)" To: commits@cassandra.apache.org Message-ID: <1998988169.45608.1306425827667.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <207503240.9202.1298406698903.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2221) 'show create' commands on the CLI to export schema 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-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039750#comment-13039750 ] David Boxenhorn commented on CASSANDRA-2221: -------------------------------------------- That's a very minimal amount of diffing, whether the CF exists or not! > 'show create' commands on the CLI to export schema > -------------------------------------------------- > > Key: CASSANDRA-2221 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2221 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Reporter: Jeremy Hanna > Assignee: Aaron Morton > Priority: Minor > Labels: cli > Fix For: 0.8.1 > > Attachments: 0001-add-show-schema-statement-8.patch, 0001-add-show-schema-statement.patch > > > It would be nice to have 'show create' type of commands on the command-line so that it would generate the DDL for the schema. > A scenario that would make this useful is where a team works out a data model over time with a dev cluster. They want to use parts of that schema for new clusters that they create, like a staging/prod cluster. It would be very handy in this scenario to have some sort of export mechanism. > Another use case is for testing purposes - you want to replicate a problem. > We currently have schematool for import/export but that is deprecated and it exports into yaml. > This new feature would just be able to 'show' - or export if they want the entire keyspace - into a script or commands that could be used in a cli script. It would need to be able to regenerate everything about the keyspace including indexes and metadata. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira