Re: Java Collections.emptyList inserted as null object in cassandra

2016-11-29 Thread Cody Yancey
It is not possible. Internally Cassandra flattens your data out into a set of key-value-pairs. All collection types, including lists, are nothing more than a thin layer of schema over a clustered set of key-value-pairs, so on disk there is no difference between an empty list and a list that doesn't

Re: Java Collections.emptyList inserted as null object in cassandra

2016-11-29 Thread Cody Yancey
It is not possible. Internally Cassandra flattens your data out into a set of key-value-pairs. All collection types, including lists, are nothing more than a thin layer of schema over a clustered set of key-value-pairs, so on disk there is no difference between an empty list and a list that doesn't

Java Collections.emptyList inserted as null object in cassandra

2016-11-29 Thread Selvam Raman
Filed Type in cassandra : List I am trying to insert Collections.emptyList() from spark to cassandra list field. In cassandra it stores as null object. How can i avoid null values here. -- Selvam Raman "லஞ்சம் தவிர்த்து நெஞ்சம் நிமிர்த்து"