[ 
https://issues.apache.org/jira/browse/CASSANDRA-3647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418218#comment-13418218
 ] 

Pavel Yaskevich commented on CASSANDRA-3647:
--------------------------------------------

bq. What would be useful is the query used to trigger that exception. I'll note 
that there is some basic tests for this at 
https://github.com/riptano/cassandra-dtest/blob/master/cql_tests.py (set_test, 
list_test and map_test) which have some SET operation and are working 
correctly. And btw, everyone is very much welcome to help adding/improving 
those tests.

I probably did something extraordinary (schema borrowed from Jonathan's comment 
from 04/Jun/12)

{noformat}
CREATE TABLE foo(
  k uuid PRIMARY KEY,
  L list<int>,
  M map<text, int>,
  S set<int>
);

UPDATE ks.foo SET L = [1, 3, 5] WHERE k = 
'b017f48f-ae67-11e1-9096-005056c00008';
UPDATE ks.foo SET L = L + [7, 11, 13] WHERE k = 
'b017f48f-ae67-11e1-9096-005056c00008';
UPDATE ks.foo SET S = {1, 3, 5} WHERE k = 
'b017f48f-ae67-11e1-9096-005056c00009';
UPDATE ks.foo SET S = S + {7, 11, 13} WHERE k = 
'b017f48f-ae67-11e1-9096-005056c00009';
{noformat}
                
> Support set and map value types in CQL
> --------------------------------------
>
>                 Key: CASSANDRA-3647
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3647
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API, Core
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>              Labels: cql
>             Fix For: 1.2
>
>         Attachments: CASSANDRA-3647-alternative.patch
>
>
> Composite columns introduce the ability to have arbitrarily nested data in a 
> Cassandra row.  We should expose this through CQL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to