You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2014/05/11 00:12:40 UTC
[jira] [Issue Comment Deleted] (CASSANDRA-7193)
rows_per_partition_to_cache is not reflected in table DESCRIBE
[ https://issues.apache.org/jira/browse/CASSANDRA-7193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams updated CASSANDRA-7193:
----------------------------------------
Comment: was deleted
(was: Similar to CASSANDRA-6898, 2.1 probably already has this fixed, but like that ticket I'd like to see it fixed in 2.0 as well.)
> rows_per_partition_to_cache is not reflected in table DESCRIBE
> --------------------------------------------------------------
>
> Key: CASSANDRA-7193
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7193
> Project: Cassandra
> Issue Type: Bug
> Reporter: Ryan McGuire
> Assignee: Marcus Eriksson
> Priority: Minor
>
> I can create a table with the new query cache from CASSANDRA-5357:
> {code}
> CREATE TABLE status (user text, status_id timeuuid, status text, PRIMARY KEY (user, status_id)) WITH caching = '{"keys":"ALL", "rows_per_partition":"10"}';
> {code}
> This method appears to work fine.
> However, that is not the syntax mentioned in that ticket. It says to use a rows_per_partition_to_cache setting instead, which does appear to work in cql:
> {code}
> CREATE TABLE status2 (user text, status_id timeuuid, status text, PRIMARY KEY (user, status_id)) WITH rows_per_partition_to_cache = 200;
> {code}
> But that setting is not reflected in the table description, instead it still shows NONE:
> {code}
> cqlsh:test> DESCRIBE TABLE status2;
> CREATE TABLE test.status2 (
> user text,
> status_id timeuuid,
> status text,
> PRIMARY KEY (user, status_id)
> ) WITH CLUSTERING ORDER BY (status_id ASC)
> AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
> ...
> {code}
> Similarly, alter table with that syntax, does not produce an error, but also does not seem to affect the setting :
> {code}
> ALTER TABLE test.status WITH rows_per_partition_to_cache = 200;
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)