RE: *Union* data type modeling in Cassandra

2014-05-05 Thread Ngoc Minh VO
[mailto:doanduy...@gmail.com] Sent: vendredi 2 mai 2014 12:29 To: user@cassandra.apache.org Subject: Re: *Union* data type modeling in Cassandra Hello Ngoc Minh I'd go with the first data model. To solve the null <-> tombstone issue, just do not insert them at runtime if value is null

Re: *Union* data type modeling in Cassandra

2014-05-02 Thread DuyHai Doan
Hello Ngoc Minh I'd go with the first data model. To solve the null <-> tombstone issue, just do not insert them at runtime if value is null. If only numvalue double != null -> INSERT INTO data_table(key,numvalue) VALUES(...,...); If only numvalues list != null -> INSERT INTO data_table(key,nu