cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Holmberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9188) cqlsh does not display properly the modified UDTs
Date Fri, 13 Nov 2015 16:44:11 GMT

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

Adam Holmberg commented on CASSANDRA-9188:
------------------------------------------

The pertinent change is in any version based on the 3.0rc1 branch. 3.0 should be covered as
of last week (confirmed using the scenario from the description in 3.0 GA). I'm not sure what
versions are bundled for other branches.

> cqlsh does not display properly the modified UDTs
> -------------------------------------------------
>
>                 Key: CASSANDRA-9188
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9188
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 2.1.x
>
>
> The problem can be reproduced as follow:
> {code}
> cqlsh:test2> create type myType (a int);
> cqlsh:test2> create table myTable (a int primary key, b frozen<myType>);
> cqlsh:test2> insert into myTable (a, b) values (1, {a: 1});
> cqlsh:test2> select * from myTable;
>  a | b
> ---+--------
>  1 | {a: 1}
> (1 rows)
> cqlsh:test2> alter type myType add b int;
> cqlsh:test2> insert into myTable (a, b) values (2, {a: 2, b :2});
> cqlsh:test2> select * from myTable;
>  a | b
> ---+--------
>  1 | {a: 1}
>  2 | {a: 2}
> (2 rows)
> {code}
> If {{cqlsh}} is then restarted it will display the data properly.
> {code}
> cqlsh:test2> select * from mytable;
>  a | b
> ---+-----------------
>  1 | {a: 1, b: null}
>  2 |    {a: 2, b: 2}
> (2 rows)
> {code} 



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

Mime
View raw message