cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7472) Prepared marker for collections inside UDT are not properly handled
Date Tue, 01 Jul 2014 04:06:25 GMT

     [ 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)

Mime
View raw message