You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by anuja jain <an...@gmail.com> on 2017/03/06 05:53:00 UTC

Frozen type sin cassandra.

Hi,
Is there is difference between creating column of type frozen<list<double>>
and frozen<list_double> where list_double is UDT of type
frozen<list<double>> ?
Also how to create a solr index on such columns?

Re: Frozen type sin cassandra.

Posted by anuja jain <an...@gmail.com>.
Thanks Tyler.

On Tue, Mar 7, 2017 at 10:54 PM, Tyler Hobbs <ty...@datastax.com> wrote:

>
> On Sun, Mar 5, 2017 at 11:53 PM, anuja jain <an...@gmail.com> wrote:
>
>> Is there is difference between creating column of type
>> frozen<list<double>> and frozen<list_double> where list_double is UDT of
>> type frozen<list<double>> ?
>>
>
> Yes, there is a difference in serialization format: the first will be
> serialized directly as a list, the second will be serialized as a
> single-field UDT containing a list.
>
> Additionally, the second form supports altering the type by adding fields
> to the UDT.  This can't be done with the first form.  If you don't need
> this capability, I recommend going with the simpler option of
> frozen<list<double>>.
>
>
>> Also how to create a solr index on such columns?
>>
>
> I have no idea, sorry.
>
> --
> Tyler Hobbs
> DataStax <http://datastax.com/>
>

Re: Frozen type sin cassandra.

Posted by Tyler Hobbs <ty...@datastax.com>.
On Sun, Mar 5, 2017 at 11:53 PM, anuja jain <an...@gmail.com> wrote:

> Is there is difference between creating column of type
> frozen<list<double>> and frozen<list_double> where list_double is UDT of
> type frozen<list<double>> ?
>

Yes, there is a difference in serialization format: the first will be
serialized directly as a list, the second will be serialized as a
single-field UDT containing a list.

Additionally, the second form supports altering the type by adding fields
to the UDT.  This can't be done with the first form.  If you don't need
this capability, I recommend going with the simpler option of
frozen<list<double>>.


> Also how to create a solr index on such columns?
>

I have no idea, sorry.

-- 
Tyler Hobbs
DataStax <http://datastax.com/>