You can't change the name of a column family.  Instead of using
alter_column_family(), use drop_column_family() and then recreate it with a
different name use create_column_family().


On Tue, Jan 14, 2014 at 1:27 PM, Kumar Ranjan <winnerd...@gmail.com> wrote:

> Hey folks,
>
> I used create_column_family to create a CF but made a typo and I need to
> use alter_column_family to drop that column and re-create with correct
> name? Can you help with the syntax?
>
> here is what I use for alter_column_family:
>
> SYSTEM_MANAGER.alter_column_family('Narrative','Instagram_Tags',default_validation_class='UTF8Type',super=True,
> comparator='UTF8Type',key_validation_class='UTF8Type',
> column_validation_classes=validators)
>
> where validators={'longitude': 'DoubleType', 'latitude':  'DoubleType',}
>
>


-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Reply via email to