Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-606

Support LWT for delete operations (DELETE .. IF EXISTS)

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.2 M2 (Moore)
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true
    • Sprint:
      Lovelace SR1

      Description

      I'd like to execute a delete query with IF EXISTS:

      DELETE .. IF EXISTS
      

       

      The interface for delete currently looks like

      Mono<WriteResult> delete(Object entity, QueryOptions options) throws DataAccessException;
      

      so takes 'QueryOptions' (should be 'UpdateOptions')?

       

      Have tried following without success:

      operations.delete(entity, UpdateOptions.builder().withIfExists().build())
      

      (results in a regular delete operation - so the `withIfExists` is not getting applied)

       

      I run into the issue on following versions:

      • spring-data-cassandra-2.1.0.RC1.jar
      • spring-boot-starter-data-cassandra-reactive-2.1.0.M1.jar

       

      Note: I wasn't able to find guidelines for submitting bugs, please let me know if should provide further information.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              hartmut_co_uk Hartmut
              Last updater:
              Christoph Strobl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 41 weeks, 1 day ago