[jira] [Commented] (CASSANDRA-9735) Add ignore extra fields for inserting JSON?

2015-07-06 Thread Christopher Batey (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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)


[jira] [Commented] (CASSANDRA-9735) Add ignore extra fields for inserting JSON?

2015-07-06 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14615188#comment-14615188
 ] 

Jonathan Ellis commented on CASSANDRA-9735:
---

I don't see either automatically issue ALTER when a new field is seen or 
silently drop unrecognized fields on the floor as good features to add...

 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)