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 B8F7818A65 for ; Mon, 6 Jul 2015 15:47:05 +0000 (UTC) Received: (qmail 13945 invoked by uid 500); 6 Jul 2015 15:47:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 13915 invoked by uid 500); 6 Jul 2015 15:47: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 13840 invoked by uid 99); 6 Jul 2015 15:47:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2015 15:47:05 +0000 Date: Mon, 6 Jul 2015 15:47:05 +0000 (UTC) From: "Christopher Batey (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9735) Add ignore extra fields for inserting JSON? 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-9735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14615197#comment-14615197 ] Christopher Batey commented on CASSANDRA-9735: ---------------------------------------------- I don't think silently dropping is a good idea, i think it should be explicit in the insert. Say you're storing a response from another system but don't want to keep all the fields or break if they add a field you aren't interested in. > Add ignore extra fields for inserting JSON? > ------------------------------------------- > > Key: CASSANDRA-9735 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9735 > Project: Cassandra > Issue Type: Improvement > Components: API > Reporter: Christopher Batey > Priority: Minor > > One of the use cases I see for the INSERT into JSON ... syntax is for when incoming data matches their schema. It would be nice to allow extra fields as to not be too brittle. > However I think strict validation should be the default so maybe the insert or table can include an extra flag? -- This message was sent by Atlassian JIRA (v6.3.4#6332)