I am facing a problem in Cassandra to insert list
create table employees(
id int PRIMARY KEY,
name varchar,
emails list <varchar>
);
CQL query
insert into employees (id, name, emails) values (1,'fake_name',['[email protected]', '[email protected]']);
result of select * from employees
id | emails | name
----+----------------------------------------+--------
1 | ['[email protected]', '[email protected]'] | shahid
How we can insert list using Astyanax ?
Astayanax is still based on the old Thrift API, so it is missing the underlying abstractions to support CQL collections like Lists. You should use the CQL Java Driver instead: https://github.com/datastax/java-driver