Git Product home page Git Product logo

Comments (5)

valchkou avatar valchkou commented on June 8, 2024

I have unittest which covers alter and index scenarios. Tests pass OK.
So , to figure what's wrong I need more details on your usecase.

  • your Entity.java code which fails
  • what exactly you altered in entity to make sync fail.
    SchemaSync.sync() runs only when entity definition changed.
    Sync must not run if nothing has changed since the last run.

from cassandra-driver-mapping.

yarroha avatar yarroha commented on June 8, 2024

Here is my entity class. http://pastebin.com/h0fdm70d
I do not altering anything. But when I relaunch my app it decides to resync entity and remove "action_serverId_idx" index.
Environment: Cassandra 2.0.8, Oracle Java 8, ubuntu 12.04.

from cassandra-driver-mapping.

yarroha avatar yarroha commented on June 8, 2024

Ok, Cassandra save index name in lowercase. Even it was described in CamelCase. So, on the second connection it comperes serverId with serverid. Have a look here: http://www.datastax.com/dev/blog/cql3-evolutions part about Case sensitivity

from cassandra-driver-mapping.

yarroha avatar yarroha commented on June 8, 2024

In CQL2, the PRIMARY KEY was case insensitive, but all other column identifiers where case sensitive. So we have cleaned that up in CQL3. In CQL3, identifiers (keyspace/table/columns names) are always case insensitive by default.

Double quotes in the @Index annotation doesn't pass to Cassandra correctly. But when you force column name and set columnList all works fine http://pastebin.com/bxnSGuCH

from cassandra-driver-mapping.

valchkou avatar valchkou commented on June 8, 2024

Please, refresh from maven. should work now.

from cassandra-driver-mapping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.