Add support for INSERT ... IF NOT EXISTS

Description

Current version of the driver doesn't support inserts to be executed only when key doesn't exists. This is supported in CQL as INSERT ... IF NOT EXISTS (see documentation at https://docs.datastax.com/en/cql/3.1/cql/cql_reference/insert_r.html).

This feature should be added as an option in WriteConf class.

Pull Requests

None

Activity

Show:

Russell Spitzer April 13, 2016 at 11:25 PM

Merged, Jenkins and Travis were unhappy with building 2.10 but builds locally passed and 2.11 passed remotely

Russell Spitzer April 13, 2016 at 7:06 PM

Yep, not your fault. Will review when I get a chance.

Radek Strnad April 13, 2016 at 7:04 PM

The patch is in. I also requested pull request, however build for Scala 2.10 failed due to connection reset while dowloading HIVE libraries which I believe is not my fault.

Russell Spitzer April 13, 2016 at 5:28 PM

Well that's the perfect use case

Radek Strnad April 13, 2016 at 3:05 PM

I have a use case where I have low velocity data which I can't overwrite (I need the oldest record) and I can afford the increased cost of writes.

I'm already working on a patch.

Fixed

Details

Assignee

Reporter

Reviewer

Pull Request

Components

Fix versions

Affects versions

Priority

Created April 13, 2016 at 2:05 PM
Updated June 3, 2016 at 10:48 PM
Resolved April 13, 2016 at 11:24 PM