On Thu, Jul 28, 2011 at 12:01 AM, Jonathan Ellis <jbel...@gmail.com> wrote:

> On Wed, Jul 27, 2011 at 10:53 PM, Edward Capriolo <edlinuxg...@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

Reply via email to