You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2013/01/05 00:56:12 UTC
[jira] [Commented] (CASSANDRA-5117) CQL 3 ALTER TABLE ... ADD
causes NPE
[ https://issues.apache.org/jira/browse/CASSANDRA-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544363#comment-13544363 ]
Aleksey Yeschenko commented on CASSANDRA-5117:
----------------------------------------------
Looks like it could be related to CASSANDRA-5064.
> CQL 3 ALTER TABLE ... ADD causes NPE
> ------------------------------------
>
> Key: CASSANDRA-5117
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5117
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.0
> Environment: Mac OSX, apache-cassandra-1.2.0-src downloaded from project Jan 2, 2013
> Reporter: Kristine Hahn
>
> To reproduce:
> ./cqlsh
> Connected to Test Cluster at localhost:9160.
> [cqlsh 2.3.0 | Cassandra 1.2.0-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.35.0]
> Use HELP for help.
> cqlsh> create keyspace music with replication = {'CLASS' :
> ... 'SimpleStrategy', 'replication_factor' : 3};
> cqlsh> use music
> ... ;
> cqlsh:music> CREATE TABLE songs (
> ... id uuid PRIMARY KEY,
> ... title text,
> ... album text,
> ... artist text,
> ... data blob
> ... );
> cqlsh:music> insert into songs (id, title, artist, album) values ('a3e64f8f-bd44-4f28-b8d9-6938726e34d4', 'La Grange', 'ZZ Top', 'Tres Hombres');
> cqlsh:music> insert into songs (id, title, artist, album) values ('8a172618-b121-4136-bb10-f665cfc469eb', 'Moving in Stereo', 'Fu Manchu', 'We Must Obey');
> cqlsh:music> insert into songs (id, title, artist, album) values ('62c36092-82a1-3a00-93d1-46196ee77204', 'Outside Woman Blues', 'Back Door Slam', 'Roll Away');
> cqlsh:music> CREATE TABLE song_tags (
> ... id uuid,
> ... tag_name text,
> ... PRIMARY KEY (id, tag_name)
> ... );
> cqlsh:music> select * from song_tags;
> cqlsh:music> INSERT INTO song_tags (id, tag_name) VALUES ('a3e64f8f-bd44-4f28-b8d9-6938726e34d4', 'blues');
> cqlsh:music> INSERT INTO song_tags (id, tag_name) VALUES ('8a172618-b121-4136-bb10-f665cfc469eb', 'covers');
> cqlsh:music> INSERT INTO song_tags (id, tag_name) VALUES ('a3e64f8f-bd44-4f28-b8d9-6938726e34d4', '1973');
> cqlsh:music> INSERT INTO song_tags (id, tag_name) VALUES ('8a172618-b121-4136-bb10-f665cfc469eb', '2007');
> cqlsh:music> select * from song_tags;
> id | tag_name
> --------------------------------------+----------
> a3e64f8f-bd44-4f28-b8d9-6938726e34d4 | 1973
> a3e64f8f-bd44-4f28-b8d9-6938726e34d4 | blues
> 8a172618-b121-4136-bb10-f665cfc469eb | 2007
> 8a172618-b121-4136-bb10-f665cfc469eb | covers
> cqlsh:music> drop table song_tags;
> cqlsh:music> ALTER TABLE songs ADD tags set<text>;
> TSocket read 0 bytes
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira