Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. cqlsh:foo> CREATE TABLE users (
  2. ... userid text PRIMARY KEY,
  3. ... first_name text,
  4. ... last_name text,
  5. ... emails set<text>,
  6. ... top_scores list<int>,
  7. ... todo map<timestamp, text>
  8. ... );
  9. cqlsh:foo> create custom index bar on foo.users (userid, last_name);
  10. InvalidRequest: Error from server: code=2200 [Invalid query] message="Cannot create secondary index on partition key column userid"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement