how to create a table/column family with many number of columns in cassandra?

94 Views Asked by At

I have 10,000 columns and i have a csv file with a header,is it possible to create a columns by using this csv file header ?

create table usertable (
    y_id varchar primary key,
    field0 varchar,
    field1 varchar,
    field2 varchar,
     ...
     ...
    field9999 varchar,
    field10000 varchar);

I am very sure the above column family creation is not sufficient.I want to load all column names from that csv file header instead of writing manually

0

There are 0 best solutions below