[
https://issues.apache.org/jira/browse/CASSANDRA-12719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
suisuihan updated CASSANDRA-12719:
----------------------------------
hi, in http://cassandra.apache.org/doc/latest/cql/ddl.html#partition-key, the
data definition of "The primary key", the definination of table t primary key
is wrong.
~~~
CREATE TABLE t (
a int,
b int,
c int,
PRIMARY KEY (a, c, d)
);
SELECT * FROM t;
a | b | c
---+---+---
0 | 0 | 4 // row 1
0 | 1 | 9 // row 2
0 | 2 | 2 // row 3
0 | 3 | 3 // row 4
~~~
I think the primary key should be (a, b, c) from context.
~~~
PRIMARY KEY (a, b, c)
~~~
> typo in cql examples
> --------------------
>
> Key: CASSANDRA-12719
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12719
> Project: Cassandra
> Issue Type: Bug
> Components: Documentation and Website
> Reporter: suisuihan
> Priority: Trivial
>
> Data Definition example use wrong definition
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)