cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-9192) Tuple columns with UDTs not updated when the UDT is altered
Date Wed, 15 Apr 2015 12:48:58 GMT

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

Benjamin Lerer edited comment on CASSANDRA-9192 at 4/15/15 12:48 PM:
---------------------------------------------------------------------

If you have not started to work on it yet, I think that you should wait. This problem could
be fixed as part of CASSANDRA-9148


was (Author: blerer):
If you have not started to work on it yet I think that you should wait as this problem could
be fixed as part of CASSANDRA-9148

> Tuple columns with UDTs not updated when the UDT is altered
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-9192
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9192
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tyler Hobbs
>            Assignee: Tyler Hobbs
>            Priority: Minor
>             Fix For: 2.1.5
>
>
> When a tuple column contains a UDT and the UDT is altered, we do not update the tuple
column:
> {noformat}
> cqlsh> create keyspace ks1 WITH replication = {'class': 'SimpleStrategy', 'replication_factor':
'1' };
> cqlsh> create type ks1.foo (a int, b int);
> cqlsh> create table ks1.mytable (a int primary key, b frozen<tuple<int, ks1.foo>>);
> cqlsh> insert into ks1.mytable (a, b) VALUES (1, (1, {a: 1, b: 1}));
> cqlsh> alter type ks1.foo ADD c int;
> cqlsh> insert into ks1.mytable (a, b) VALUES (1, (1, {a: 1, b: 1}));
> cqlsh> insert into ks1.mytable (a, b) VALUES (1, (1, {a: 1, b: 1, c: 1}));
> InvalidRequest: code=2200 [Invalid query] message="Unknown field 'c' in value of user
defined type foo"
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message