cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Moved] (CASSANDRA-5142) ColumnFamily recreated on ALTER TABLE from CQL3
Date Thu, 10 Jan 2013 18:46:14 GMT

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

Andreas Veithen moved ABDERA-313 to CASSANDRA-5142:
---------------------------------------------------

    Workflow: no-reopen-closed, patch-avail  (was: jira)
         Key: CASSANDRA-5142  (was: ABDERA-313)
     Project: Cassandra  (was: Abdera)
    
> 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
>
> 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

Mime
View raw message