I am new to cassandra and I read some articles about static and dynamic column family. It is mentioned ,From Cassandra 3 table and column family are same.
I created key space, some tables and inserted data into that table.
CREATE TABLE subscribers(
id uuid,
email text,
first_name text,
last_name text,
PRIMARY KEY(id,email)
);
INSERT INTO subscribers(id,email,first_name,last_name)
VALUES(now(),'[email protected]','Test1','User1');
INSERT INTO subscribers(id,email,first_name,last_name)
VALUES(now(),'[email protected]','Test2','User2');
INSERT INTO subscribers(id,email,first_name,last_name)
VALUES(now(),'[email protected]','Test3','User3');
It all seems to work fine.
But what I need is to create a dynamic column family with only data types and no predefined columns.
With insert query I can have different arguments and the table should be inserted.
In articles, it is mentioned ,for dynamic column family, there is no need to create a schema(predefined columns). I am not sure if this is possible in cassandra or my understanding is wrong.
Let me know if this is possible or not? if possible Kindly provide with some examples.
Thanks in advance.