cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: Changing the CLI, not a great idea!
Date Thu, 28 Jul 2011 04:24:51 GMT
On Thu, Jul 28, 2011 at 12:01 AM, Jonathan Ellis <jbellis@gmail.com> wrote:

> On Wed, Jul 27, 2011 at 10:53 PM, Edward Capriolo <edlinuxguru@gmail.com>
> wrote:
> > You can not even put two statements on the same line. So the ';' is semi
> > useless syntax.
>
> Nobody ever asked for that, but lots of people asked to allow
> statements spanning multiple lines.
>
> > Is their a way to move things forward without hurting backwards
> > compatibility of the CLI?
>
> Yes.  Create a new one based on CQL but leave the old one around.
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>

On a semi related note. How can you update a column family and add an index?

[default@app] create column family people;
4e3310c0-b8d1-11e0-0000-242d50cf1f9f
Waiting for schema agreement...
... schemas agree across the cluster
[default@app] update column family people with column_metadata = [{
column_name : ascii(inserted_at), validation_class : LongType , index_type :
0 , index_name : ins_idx}];
org.apache.cassandra.db.marshal.MarshalException: cannot parse
'FUNCTION_CALL' as hex bytes
[default@app] update column family people with column_metadata = [{
column_name : inserted_at, validation_class : LongType , index_type : 0 ,
index_name : ins_idx}];
org.apache.cassandra.db.marshal.MarshalException: cannot parse 'inserted_at'
as hex bytes

Edward

Mime
View raw message