Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 088C4200B26 for ; Mon, 27 Jun 2016 11:12:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0714D160A5B; Mon, 27 Jun 2016 09:12:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4F043160A3C for ; Mon, 27 Jun 2016 11:12:53 +0200 (CEST) Received: (qmail 60958 invoked by uid 500); 27 Jun 2016 09:12:52 -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 60946 invoked by uid 99); 27 Jun 2016 09:12:52 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2016 09:12:52 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2359C2C1F5D for ; Mon, 27 Jun 2016 09:12:52 +0000 (UTC) Date: Mon, 27 Jun 2016 09:12:52 +0000 (UTC) From: "Benjamin Lerer (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11911) CQLSSTableWriter should allow for unset fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Jun 2016 09:12:54 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15350681#comment-15350681 ] Benjamin Lerer commented on CASSANDRA-11911: -------------------------------------------- Thanks. +1 > CQLSSTableWriter should allow for unset fields > ---------------------------------------------- > > Key: CASSANDRA-11911 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11911 > Project: Cassandra > Issue Type: Improvement > Components: Core > Environment: Cassandra 3.0.6 > Reporter: Matt Kopit > Assignee: Alex Petrov > Labels: lhf > > If you are using CQLSSTableWriter to bulk load data into sstables the only way to handle fields without values is by setting them to NULL, which results in the generation of a tombstoned field in the resulting sstable. For a large dataset this can result in a large number of tombstones. > CQLSSTableWriter is currently instantiated with a single INSERT statement, so it's not an option to modify the insert statement to specify different fields on a per-row basis. > Here are three potential solutions to this problem: > 1. Change the default behavior of how NULLs are handled so those fields are treated as UNSET and will never be written to the sstable. > 2. Create a configuration option for CQLSSTableWriter that governs whether NULLs should be ignored. > 3. Invent a new constant that represents an UNSET value which can be used in place of NULL. -- This message was sent by Atlassian JIRA (v6.3.4#6332)