· 7 years ago · Jan 03, 2019, 08:24 AM
1CREATE TABLE IF NOT EXISTS my_test (
2 id bigint PRIMARY KEY,
3 list_strings list<text>
4 );
5
6prepared_statement = session.prepare("INSERT INTO my_test (id, list_strings) VALUES (?, ?)")
7 session.execute(prepared_statement, [id, strings[:5]])
8
9Error from server: code=1500 [Replica(s) failed to execute write] message="Operation failed - received 0 responses and 1 failures" info={'required_responses': 1, 'consistency': 'LOCAL_ONE', 'received_responses': 0, 'failures': 1}
10
11id | time | strings
12-----------+------------+---------
13 bigint | timestamp | string
14 partition | clustering |