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 2AC4E7144 for ; Thu, 15 Dec 2011 03:56:08 +0000 (UTC) Received: (qmail 82773 invoked by uid 500); 15 Dec 2011 03:56:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 82602 invoked by uid 500); 15 Dec 2011 03:56:05 -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 82186 invoked by uid 99); 15 Dec 2011 03:56:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 03:56:03 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 03:55:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EE33F113F07 for ; Thu, 15 Dec 2011 03:55:30 +0000 (UTC) Date: Thu, 15 Dec 2011 03:55:30 +0000 (UTC) From: "Jeremy Hanna (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1188771329.14049.1323921330978.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <971412096.8278.1323818977246.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3628) Make Pig/CassandraStorage delete functionality disabled by default and configurable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169956#comment-13169956 ] Jeremy Hanna commented on CASSANDRA-3628: ----------------------------------------- Will post a new patch tomorrow that doesn't check for empty/nulls and enableDeletes in the same if condition. Otherwise there are NPEs. > Make Pig/CassandraStorage delete functionality disabled by default and configurable > ----------------------------------------------------------------------------------- > > Key: CASSANDRA-3628 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3628 > Project: Cassandra > Issue Type: Task > Reporter: Jeremy Hanna > Assignee: Jeremy Hanna > Labels: pig > Fix For: 1.0.7, 1.1 > > > Right now, there is a way to delete column with the CassandraStorage loadstorefunc. In practice it is a bad idea to have that enabled by default. A scenario: do an outer join and you don't have a value for something and then you write out to cassandra all of the attributes of that relation. You've just inadvertently deleted a column for all the rows that didn't have that value as a result of the outer join. It can be argued that you want to be careful with how you project after the join. However, I would think disabling by default and having a configurable property to enable it for the instances when you explicitly want to use it is the right plan. > Fwiw, we had a bug in one of our scripts that did exactly as described above. It's good to fix the bug. It's bad to implicitly delete data. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira