Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


CQL queries does not work with data types other than String #127

mevivs opened this Issue · 2 comments

1 participant


Raising it n behalf of issue raised by Neil Martin.

From: Neil Martin []
Sent: 06 October 2012 22:42
To: Vivek Mishra
Subject: Re: {kundera-discuss} persistence.xml problem

I do have a question:

I tried deleting a row from cassandra and noticed that CQL didn't see the row anymore, but CLI and a JPA query still sees the key for the row. So I was wondering how a native query from Kundera would see the row. I did the following:

   Query nativeQuery = em.createNativeQuery("SELECT * from car", Car.class);

I get the following exception:

Exception in thread "main" javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Can not set int field com.vnp.cassandra.Car.idhttp://com.vnp.cassandra.Car.id to java.lang.String
at com.impetus.client.cassandra.CassandraClientBase.executeQuery(
at com.impetus.client.cassandra.pelops.PelopsClient.executeQuery(
at com.impetus.client.cassandra.query.CassQuery.populateEntities(
at com.impetus.kundera.query.QueryImpl.getResultList(
at com.vnp.cassandra.Runner.main(

Any idea what's going on there? i was hoping that the native query would ignore the deleted row in the same way that CQL does.

-- Neil

@mevivs mevivs was assigned

Fixed in current trunk branch.



Releasing with 2.3


@mevivs mevivs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.