Mateusz Moneta created CASSANDRA-8822:
-----------------------------------------

             Summary: 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)

Reply via email to