How to define dynamic column families in cassandra

前端 未结 2 798
太阳男子
太阳男子 2020-12-31 19:54

Here it is said, that no special effort is need to get a dynamic column family. But I always get an exception, when I try to set a value for an undefined column.

I c

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 20:40

    CQL3 supports dynamic column family but you have to alter the table schema first

    ALTER TABLE places ADD website varchar;
    

    Check out the 1.2 documentation and CQL in depth slides

提交回复
热议问题