Cassandra upsert不起作用

时间:2018-01-30 05:07:11

标签: cassandra datastax cql upsert cqlsh

我的cqlsh版本是3.3.1,我使用datastax.cassandra java驱动程序进行连接。以下是我的Cassandra架构。

url text PRIMARY KEY,
ae_rank int,
age int,
brands list<text>,
cities list<text>,
content text,
countries list<text>,
created timestamp,
customer_id text,
datasource list<text>,
diseases list<frozen<disease>>,
drugs list<text>,
gender int,
host text,
lang text,
meddracoding list<text>,
molecules list<text>,
owners list<text>,
page_rank int,
pj_terms list<frozen<pj_term>>,
projects list<text>,
quintilesims_id int,
reviewed int,
sentiment int,
social_tags list<text>,
switchovers list<frozen<switchover>>,
taxonomies list<frozen<taxonomy>>,
therapy_areas list<text>,
title text,
total_count bigint,
ts timestamp,
type text,
updated timestamp,
viralities map<text, bigint>

如果存在具有相同主键值的更新(或插入)语句问题,则相关行值不会更新。在这里,我们使用URL作为主键值(例如http://example.com/example/1234test

这是Cassandra或java驱动程序版本的问题吗?

请帮助解决这个问题。

0 个答案:

没有答案