I want to dynamically add columns to this column family using cql code.
CREATE COLUMN FAMILY blog_entry WITH comparator = UTF8Type AND key_validation_class=UTF8Type AND default_validation_class = UTF8Type;
How can I do it?
This becomes a bit of a FAQ, so I wrote a detailed explanation: http://www.datastax.com/dev/blog/does-cql-support-dynamic-columns-wide-rows
To do this, you first need to modify the table to add a column, and then insert will start working. I tried above on cqlsh and it worked.
alter table newdata add column name varchar;
See also the link below:
How to define dynamic column families in cassandra
ALTER TABLE blog_entry ADD newcolumnname text;
Source: https://habr.com/ru/post/946584/More articles:How to increase the size of a map in GO? - goRankNTypes: apply the same function to pairs of different types - haskellSQL Server: why there are no rows? - sql-serveruniqueidentifier in SQL becomes lowercase in C # - c #Is there an @NonNullByDefault annotation in IDEA? - javaHow to check if a registry key exists - delphiHow to access log output from a real Windows Phone 8 device - loggingClear privilege enumeration flags correctly in C # - enumsGoogle Map API v3 not loading in IE9 - javascriptAdd an additional lib folder dependency to build sbt in the elevator project - scalaAll Articles