You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2013/01/15 19:34:12 UTC

[jira] [Resolved] (CASSANDRA-5142) ColumnFamily recreated on ALTER TABLE from CQL3

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

Jonathan Ellis resolved CASSANDRA-5142.
---------------------------------------

    Resolution: Cannot Reproduce

Thanks for checking!
                
> ColumnFamily recreated on ALTER TABLE from CQL3
> -----------------------------------------------
>
>                 Key: CASSANDRA-5142
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5142
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: MacOSX 10.8.2, Java 7u10, Cassandra 1.2.0 from brew
>            Reporter: Andrew Garman
>            Assignee: Tyler Patterson
>
> CQL session:
> ===========================
> cqlsh:demodb> SELECT * FROM users 
>  userid | emails                             | firstname | lastname | locations
> --------+------------------------------------+-----------+----------+-----------------------------------------
>   bilbo |           {bilbo10inch@wankdb.com} |     bilbo |  baggins | [the shire, rivendell, lonely mountain]
>   frodo | {baggins@gmail.com, f@baggins.com} |     Frodo |  Baggins |   [the shire, rivendell, rohan, mordor]
> cqlsh:demodb> ALTER TABLE users ADD todo map <timestamp, reminder_text>;
> Bad Request: Failed parsing statement: [ALTER TABLE users ADD todo map <timestamp, reminder_text>;] reason: NullPointerException null
> cqlsh:demodb> ALTER TABLE users ADD todo map <timestamp, text>;
> cqlsh:demodb> UPDATE users 
>           ... SET todo = { '2012-9-24' : 'enter mordor',
>           ... '2012-10-2 12:00' : 'throw ring into mount doom' }
>           ... WHERE userid = 'frodo';
> cqlsh:demodb> SELECT * FROM users 
>           ... ;
>  userid | emails | firstname | lastname | locations | todo
> --------+--------+-----------+----------+-----------+------------------------------------------------------------------------------------------------
>   frodo |   null |      null |     null |      null | {2012-09-24 00:00:00-0400: enter mordor, 2012-10-02 12:00:00-0400: throw ring into mount doom}
> ======================
> So at this point, where's my data?

--
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