I have such a table in CQL3
create table product_info ( key text, value text, Primary key (key) );
This is a vertical table. Since I can insert new lines with (key, value).
Example data will be:
PRODUCT_INFO
key | value ------------------------------------------- product_name | sample_product quantity | 2 manufacture | sample_manufacturer .... ....
But I need a horizontal table where I could dynamically add columns without changing the table.
PRODUCT_INFO
product_name | quantity | manufacture | .... ------------------------------------------------------------------------------ sample_product | 2 | sample_manufacturer | ....
I need a structure similar to the above table, I need to continue to add columns on the fly.
CQL3 provides the ability to dynamically add columns, but before that we need to modify the table.
I need to know if there is another way that allows this.
I found that using trift api is possible, but since thrift is no longer supported, I cannot use it.
Is there any other API like hector or something else that supports this?
I went through similar entries, but I did not get a better solution.
source share