0

I had issues with reading a table from pycassa created with CQL3.

So followed this post Reading Cassandra 1.2 table with pycassa

Now trying to alter my table

ALTER TABLE tweets with COMPACT STORAGE ;

But getting an error.

Bad Request: line 1:32 missing '=' at 'STORAGE'

Community
  • 1
  • 1
M T
  • 4,099
  • 4
  • 21
  • 27

1 Answers1

3

You cant alter the underlying storage model. You'll have to re-create the table and add the WITH COMPACT STORAGE parameter.

On a side note, why not use the newer cassandra python driver that supports cql3.

Lyuben Todorov
  • 13,987
  • 5
  • 50
  • 69