当我向cassandra插入重复键时出现问题

时间:2014-05-28 02:33:16

标签: cassandra key duplicates

当我插入3条具有相同主键值的记录时,我发现列族中有一条记录,这是正确的。但它让我感到困惑,因为列系列中的记录不是我在批处理中写的任何记录。示例SQL如下所示。

BEGIN BATCH
INSERT INTO "PlaylistItem"("PlaylistID", "Title", "Album", "Artist", "SongID") VALUES (77230ccb-7141-42fc-951f-75c456cc8df8, 'Some Enchanted Evening', 'The Columbia Years (1943-1952) The Complete Recordings', 'Frank Sinatra', 06362078-36b5-44d6-889d-21b297833e9d);
INSERT INTO "PlaylistItem"("PlaylistID", "Title", "Album", "Artist", "SongID") VALUES (77230ccb-7141-42fc-951f-75c456cc8df8, 'Back in the USSR', 'The White Album', 'The Beatles', 2cca0a5c-3a03-4b2b-a15c-8949b881bb41);
INSERT INTO "PlaylistItem"("PlaylistID", "Title", "Album", "Artist", "SongID") VALUES (77230ccb-7141-42fc-951f-75c456cc8df8, 'Jumpin'' Jack Flash', 'Beggars Banquet', 'The Rolling Stones', 484706de-232d-4dce-86ba-9c1a7d95622b);
APPLY BATCH;

列系列中的最终数据是:

77230ccb-7141-42fc-951f-75c456cc8df8,The White Album,The Rolling Stones,484706de-232d-4dce-86ba-9c1a7d95622b,Some Enchanted Evening

所以我想知道这种情况会导致什么结果?

0 个答案:

没有答案