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

Alexander  updated CASSANDRA-11146:
-----------------------------------
    Description: 
CREATE TYPE test_type ( i int);
CREATE TABLE test_table ( 
     id int PRIMARY KEY, 
     model frozen<test_type>
);
INSERT INTO test_table json '{"id":1, "model":{"i":123}}';
select json * from test_table ;

success

ALTER TYPE test_type ADD b boolean;
select json * from test_table ;

error
ServerError: <ErrorMessage code=0000 [Server error] 
message="java.lang.ArrayIndexOutOfBoundsE xception: 1">



  was:
CREATE TYPE test_type ( i int);
CREATE TABLE test_table ( 
     id int PRIMARY KEY, 
     model frozen<test_type>
);
INSERT INTO test_table json '{"id":1, "model":{"i":123}}';
select json * from test_table ;

-success-

ALTER TYPE test_type ADD b boolean;
select json * from test_table ;

-error-
ServerError: <ErrorMessage code=0000 [Server error] 
message="java.lang.ArrayIndexOutOfBoundsE xception: 1">




> "alter type" crush "select json * " for table with user defined type
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-11146
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11146
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: cqlsh 5.0.1 | Cassandra 2.2.4 | CQL spec 3.3.1 | Native 
> protocol v4
> cqlsh 5.0.1 | Cassandra 3.3.0 | CQL spec 3.4.0 | Native protocol v4
>            Reporter: Alexander 
>
> CREATE TYPE test_type ( i int);
> CREATE TABLE test_table ( 
>      id int PRIMARY KEY, 
>      model frozen<test_type>
> );
> INSERT INTO test_table json '{"id":1, "model":{"i":123}}';
> select json * from test_table ;
> success
> ALTER TYPE test_type ADD b boolean;
> select json * from test_table ;
> error
> ServerError: <ErrorMessage code=0000 [Server error] 
> message="java.lang.ArrayIndexOutOfBoundsE xception: 1">



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

Reply via email to