For counter tables, non-counter types are of course allowed in the primary key. Counters would be meaningless otherwise.
Thanks, Cody On Nov 1, 2016 7:00 AM, "Ali Akhtar" <ali.rac...@gmail.com> wrote: > In the documentation for counters: > > https://docs.datastax.com/en/cql/3.1/cql/cql_using/use_counter_t.html > > The example table is created via: > > CREATE TABLE counterks.page_view_counts > (counter_value counter, > url_name varchar, > page_name varchar, > PRIMARY KEY (url_name, page_name) > ); > > Yet if I try to create a table with a mixture of texts, ints, timestamps, > and counters, i get the error ' Cannot mix counter and non counter columns > in the same table' > > Is that supposed to be allowed or not allowed, given that the official > example contains a mix of counters and non-counters? >