cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mateusz Moneta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8822) static column does not work
Date Wed, 18 Feb 2015 11:20:13 GMT

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

Mateusz Moneta commented on CASSANDRA-8822:
-------------------------------------------

You are right, I misunderstanded example, sorry for trouble :).

> static column does not work
> ---------------------------
>
>                 Key: CASSANDRA-8822
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8822
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Mateusz Moneta
>
> Static columns does not work in cassandra 2.1.2 and cqlsh 5.0.1 even with example from
documentation:
> {noformat}
> CREATE TABLE share.test (k text, s text static, i int, primary key (k, i));
> INSERT INTO share.test (k, i, s) VALUES ('foo', 0, 'bar');
> INSERT INTO share.test (k, i, s) VALUES ('for', 1, 'bao');
> SELECT * FROM share.test;
> {noformat}
> output:
> {noformat}
>  k   | i | s
> -----+---+-----
>  foo | 0 | bar
>  for | 1 | bao
> {noformat}
> same with clustering order:
> {noformat}
> CREATE TABLE share.test (k text, s text static, i int, primary key (k, i)) WITH CLUSTERING
ORDER BY (i desc);
> INSERT INTO share.test (k, i, s) VALUES ('foo', 0, 'bar');
> INSERT INTO share.test (k, i, s) VALUES ('for', 1, 'bao');
> SELECT * FROM share.test;
> {noformat}
> output:
> {noformat}
> k   | i | s
> -----+---+-----
>  foo | 0 | bar
>  for | 1 | bao
> {noformat}



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

Mime
View raw message