You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andrew Halloran (Created) (JIRA)" <ji...@apache.org> on 2012/01/22 19:18:39 UTC
[jira] [Created] (CASSANDRA-3769) Allow for comments in a
cassandra-cli file
Allow for comments in a cassandra-cli file
------------------------------------------
Key: CASSANDRA-3769
URL: https://issues.apache.org/jira/browse/CASSANDRA-3769
Project: Cassandra
Issue Type: Improvement
Components: Tools
Affects Versions: 1.0.6
Environment: Amazon Linux w/ Apache Cassandra 1.0.6
Reporter: Andrew Halloran
Priority: Trivial
I use the cassandra-cli to create schemas, update schemas, and make other calls to interrogate keyspaces and columns. I load pre-written statements from files using the -f option, example: "bin/cassandra-cli -host localhost -port 9160 -f mystatements.txt". It would be useful if I could comment my statement files with comments similar to how you can comment script and C++/Java code.
Example contents of "mystatements.txt" file:
update column family users // This is my column which holds all my user information
with comparator = UTF8Type // My column names are all strings so I will use UTF8Type
and key_validation_class = UTF8Type // My row key values are also UTF8Type
and default_validation_class = UTF8Type // Column values will be UTF8Type
and column_metadata = [
{column_name: username, validation_class: UTF8Type}, // This column stores the login name of the user
{column_name: realname, validation_class: UTF8Type}];// This column stores the real world name of user
--
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
[jira] [Commented] (CASSANDRA-3769) Allow for comments in a
cassandra-cli file
Posted by "Dave Brosius (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192910#comment-13192910 ]
Dave Brosius commented on CASSANDRA-3769:
-----------------------------------------
There is support for commenting, albeit not exactly what you are requesting...
lines start with -- are line comments
you can also use /* and */ as long as those symbols are first on the line, eg:
-- create a keyspce
create keyspace foobar;
/*
now lets see it
*/
use foobar;
describe foobar;
> Allow for comments in a cassandra-cli file
> ------------------------------------------
>
> Key: CASSANDRA-3769
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3769
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Affects Versions: 1.0.6
> Environment: Amazon Linux w/ Apache Cassandra 1.0.6
> Reporter: Andrew Halloran
> Priority: Trivial
> Labels: cassandra-cli
>
> I use the cassandra-cli to create schemas, update schemas, and make other calls to interrogate keyspaces and columns. I load pre-written statements from files using the -f option, example: "bin/cassandra-cli -host localhost -port 9160 -f mystatements.txt". It would be useful if I could comment my statement files with comments similar to how you can comment script and C++/Java code.
> Example contents of "mystatements.txt" file:
> update column family users // This is my column which holds all my user information
> with comparator = UTF8Type // My column names are all strings so I will use UTF8Type
> and key_validation_class = UTF8Type // My row key values are also UTF8Type
> and default_validation_class = UTF8Type // Column values will be UTF8Type
> and column_metadata = [
> {column_name: username, validation_class: UTF8Type}, // This column stores the login name of the user
> {column_name: realname, validation_class: UTF8Type}];// This column stores the real world name of user
--
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
[jira] [Resolved] (CASSANDRA-3769) Allow for comments in a
cassandra-cli file
Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-3769.
---------------------------------------
Resolution: Not A Problem
> Allow for comments in a cassandra-cli file
> ------------------------------------------
>
> Key: CASSANDRA-3769
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3769
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Affects Versions: 1.0.6
> Environment: Amazon Linux w/ Apache Cassandra 1.0.6
> Reporter: Andrew Halloran
> Priority: Trivial
> Labels: cassandra-cli
>
> I use the cassandra-cli to create schemas, update schemas, and make other calls to interrogate keyspaces and columns. I load pre-written statements from files using the -f option, example: "bin/cassandra-cli -host localhost -port 9160 -f mystatements.txt". It would be useful if I could comment my statement files with comments similar to how you can comment script and C++/Java code.
> Example contents of "mystatements.txt" file:
> update column family users // This is my column which holds all my user information
> with comparator = UTF8Type // My column names are all strings so I will use UTF8Type
> and key_validation_class = UTF8Type // My row key values are also UTF8Type
> and default_validation_class = UTF8Type // Column values will be UTF8Type
> and column_metadata = [
> {column_name: username, validation_class: UTF8Type}, // This column stores the login name of the user
> {column_name: realname, validation_class: UTF8Type}];// This column stores the real world name of user
--
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
[jira] [Commented] (CASSANDRA-3769) Allow for comments in a
cassandra-cli file
Posted by "Benson Margulies (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218159#comment-13218159 ]
Benson Margulies commented on CASSANDRA-3769:
---------------------------------------------
How did my name get onto this?
> Allow for comments in a cassandra-cli file
> ------------------------------------------
>
> Key: CASSANDRA-3769
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3769
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Affects Versions: 1.0.6
> Environment: Amazon Linux w/ Apache Cassandra 1.0.6
> Reporter: Andrew Halloran
> Priority: Trivial
> Labels: cassandra-cli
>
> I use the cassandra-cli to create schemas, update schemas, and make other calls to interrogate keyspaces and columns. I load pre-written statements from files using the -f option, example: "bin/cassandra-cli -host localhost -port 9160 -f mystatements.txt". It would be useful if I could comment my statement files with comments similar to how you can comment script and C++/Java code.
> Example contents of "mystatements.txt" file:
> update column family users // This is my column which holds all my user information
> with comparator = UTF8Type // My column names are all strings so I will use UTF8Type
> and key_validation_class = UTF8Type // My row key values are also UTF8Type
> and default_validation_class = UTF8Type // Column values will be UTF8Type
> and column_metadata = [
> {column_name: username, validation_class: UTF8Type}, // This column stores the login name of the user
> {column_name: realname, validation_class: UTF8Type}];// This column stores the real world name of user
--
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
[jira] [Commented] (CASSANDRA-3769) Allow for comments in a
cassandra-cli file
Posted by "Andrew Halloran (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217856#comment-13217856 ]
Andrew Halloran commented on CASSANDRA-3769:
--------------------------------------------
Thanks for following up. I couldn't find any doc on this but will give a
good look at the source next time! That is if time permits.
-Andrew
On Wed, Jan 25, 2012 at 2:21 AM, Dave Brosius (Commented) (JIRA) <
--
Andrew
> Allow for comments in a cassandra-cli file
> ------------------------------------------
>
> Key: CASSANDRA-3769
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3769
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Affects Versions: 1.0.6
> Environment: Amazon Linux w/ Apache Cassandra 1.0.6
> Reporter: Andrew Halloran
> Priority: Trivial
> Labels: cassandra-cli
>
> I use the cassandra-cli to create schemas, update schemas, and make other calls to interrogate keyspaces and columns. I load pre-written statements from files using the -f option, example: "bin/cassandra-cli -host localhost -port 9160 -f mystatements.txt". It would be useful if I could comment my statement files with comments similar to how you can comment script and C++/Java code.
> Example contents of "mystatements.txt" file:
> update column family users // This is my column which holds all my user information
> with comparator = UTF8Type // My column names are all strings so I will use UTF8Type
> and key_validation_class = UTF8Type // My row key values are also UTF8Type
> and default_validation_class = UTF8Type // Column values will be UTF8Type
> and column_metadata = [
> {column_name: username, validation_class: UTF8Type}, // This column stores the login name of the user
> {column_name: realname, validation_class: UTF8Type}];// This column stores the real world name of user
--
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