You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jorge Bay (JIRA)" <ji...@apache.org> on 2014/07/03 13:13:24 UTC
[jira] [Created] (CASSANDRA-7492) Udt inner collections under
protocol 2
Jorge Bay created CASSANDRA-7492:
------------------------------------
Summary: Udt inner collections under protocol 2
Key: CASSANDRA-7492
URL: https://issues.apache.org/jira/browse/CASSANDRA-7492
Project: Cassandra
Issue Type: Bug
Components: Core
Environment: Cassandra 2.1-rc2
Reporter: Jorge Bay
Consider the following schema:
{code:sql}
CREATE TYPE phone (alias text, number text, country_code int);
CREATE TYPE contact (first_name text, last_name text, birth_date timestamp, phones set<phone>, emails set<text>);
CREATE TABLE users_contacts (id int PRIMARY KEY, contact_value contact);
{code}
Under protocol v2, Cassandra serializes the phone *set* within contact udt, it uses protocol v3 collections format (4 byte lengths).
As an UDT is a composition of other types, it makes sense to maintain the other types formatting (in this case 2 byte length).
Possibly related to CASSANDRA-7472
--
This message was sent by Atlassian JIRA
(v6.2#6252)