You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2014/07/01 06:06:25 UTC

[jira] [Updated] (CASSANDRA-7472) Prepared marker for collections inside UDT are not properly handled

     [ https://issues.apache.org/jira/browse/CASSANDRA-7472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-7472:
--------------------------------------

    Reviewer: Tyler Hobbs

> Prepared marker for collections inside UDT are not properly handled
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-7472
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7472
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>             Fix For: 2.1.0
>
>         Attachments: 7472.txt
>
>
> Collections inside UDT needs to be encoded with the v3 protocol. However, we allow to prepare queries like:
> {noformat}
> INSERT INTO foo (k, v) VALUES (0, { s: ? });
> {noformat}
> In that case, if {{s}} is a collection, a client driver will only know that a collection is expected for that prepared variable, but it will have no way to know for sure that this collection is really part of a UDTValue. So we should handle this server side (i.e. let the user send the collection encoded with the protocol v2, but re-encode it properly).



--
This message was sent by Atlassian JIRA
(v6.2#6252)