Skip to content

Commit

Permalink
Update MV tests to work with latest MV branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jkni committed Jul 24, 2015
1 parent c6c4a9c commit cfa83ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cassandra/src/cassandra/mv.clj
Expand Up @@ -52,7 +52,9 @@
:mvid :int
:primary-key [:id]}))
(try (cassandra/execute conn (str "CREATE MATERIALIZED VIEW mv AS SELECT"
" * FROM original PRIMARY KEY (mvid);"))
" * FROM original WHERE mvid IS NOT NULL"
" AND id IS NOT NULL "
"PRIMARY KEY (mvid, id);"))
(catch com.datastax.driver.core.exceptions.AlreadyExistsException e))
(->MVSetClient conn))))
(invoke! [this test op]
Expand Down

0 comments on commit cfa83ee

Please sign in to comment.