Reputation: 3103
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 ?
Upvotes: 1
Views: 1595
Reputation: 19377
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
Upvotes: 1