cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8353) Prepared statement doesn't revalidate after table schema changes
Date Fri, 21 Nov 2014 20:46:34 GMT

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

Tyler Hobbs commented on CASSANDRA-8353:
----------------------------------------

We have CASSANDRA-7910 and CASSANDRA-7875 already, so this can probably be resolved as a duplicate.

> Prepared statement doesn't revalidate after table schema changes
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-8353
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8353
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Cassandra 2.1.2
>            Reporter: MichaƂ Jaszczyk
>
> Having simple table:
> {code}
> CREATE TABLE test1 (
>   key TEXT,
>   value TEXT,
>   PRIMARY KEY (key)
> );
> {code}
> I prepare following statement:
> {code}
> SELECT * FROM test1;
> {code}
> I run queries based on the statement which returns expected results.
> Then I update schema definition like this:
> {code}
> ALTER TABLE test1 ADD value2 TEXT;
> {code}
> I populate the "value2" values and use the same statement again. The results returned
by the same query don't include "value2". I'm sure it is not cached in the driver/application
because I was starting new process after changing schema.
> It looks to me like a bug. Please correct me if it works like this on purpose.
> I'm using ruby cql driver but I believe it is not related.



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

Mime
View raw message