Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A89A1139C for ; Wed, 11 Jun 2014 23:03:03 +0000 (UTC) Received: (qmail 60155 invoked by uid 500); 11 Jun 2014 23:03:03 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 60091 invoked by uid 500); 11 Jun 2014 23:03:03 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 60080 invoked by uid 99); 11 Jun 2014 23:03:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2014 23:03:02 +0000 Date: Wed, 11 Jun 2014 23:03:02 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-7379) updating a row with compound key with a null value removes the entire row MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Yeschenko resolved CASSANDRA-7379. ------------------------------------------ Resolution: Duplicate Reproduced In: 2.0.8, 2.0.7 (was: 2.0.7, 2.0.8) This is the expected behavior. See CASSANDRA-6951. > updating a row with compound key with a null value removes the entire row > ------------------------------------------------------------------------- > > Key: CASSANDRA-7379 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7379 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Ashot Golovenko > Assignee: Michael Shuler > Priority: Critical > > create a table > CREATE TABLE relation ( > u1 bigint, > u2 bigint, > mf int, > PRIMARY KEY (u1, u2)); > insert value: > UPDATE relation SET mf = 1 WHERE u1 = 1 and u2 = 2; > SELECT * from relation ; > u1 | u2 | mf > ----+----+---- > 1 | 2 | 1 > insert null value: > UPDATE relation SET mf = null WHERE u1 = 1 and u2 = 2; > SELECT * from relation ; > (0 rows) <--- WRONG! > The INSERT statement however works: > INSERT INTO relation (u1, u2, mf) VALUES (1, 2, null); > SELECT * from relation ; > u1 | u2 | mf > ----+----+------ > 1 | 2 | null > (1 rows) > -- This message was sent by Atlassian JIRA (v6.2#6252)