Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Problem with null values #117

Closed
sachur opened this Issue · 18 comments

3 participants

@sachur

I discovered that when I delete records in the database, I still nulls.

Since then the records could retrieve non-null?

Thanks (sorry for my English)

@mevivs
Collaborator

Hi,
Are you using Cassandra? once a record deleted from cassandra, still it's row key exists. However Kundera filters out such record and those will not be accessible.

Please explain a bit more, if your scenario differ from above mentioned.

-Vivek

@sachur

Yes, I'm using Cassandra.

But, I have an global return list, which return all the row of my DB :

String query = "Select p From FileCassandra p ";
Query q = em.createQuery(query);
List<FileCassandra> list = q.getResultList();

After delete, this method return a list where the row I deleted appear to "null".

Any solution?

@mevivs
Collaborator

Are you using 2.0.7 release? I guess it is already fixed in current trunk branch.

-Vivek

@sachur

Yes, I'm using a 2.0.7

@mevivs
Collaborator

Please verify with trunk, i think it should work.

-Vivek

@sachur

Yes, I'm using maven, and the version is 2.0.7 SNAPSHOT Kundera.

In BD, the table has 4 entries (2 null), and the method getResultList returns those 4 entries.

@xamry
@sachur

2.0.8? The latest stable version is 2.0.7?

@mevivs
Collaborator

Current trunk branch is "2.0.8-SNAPSHOT".
to checkout :

git clone git://github.com/impetus-opensource/Kundera.git
git checkout trunk

and then build:
mvn clean install (to skip test) -DskipTests

@sachur

Somehow there another? A method that returns only non-null values​​?

I thought that with version 2.0.7 there was no problem

@sachur

I think the problem may be in the version of CQL. Where can you watch the version?

@mevivs
Collaborator

You can set CQL version in kundera itself. by default it is 2.0

@mevivs
Collaborator

"Somehow there another? A method that returns only non-null values​​?

I thought that with version 2.0.7 there was no problem"

Please provide more description around this.

@mevivs
Collaborator

The way to set CQL version is:

Map clients = (Map) em.getDelegate();
Client client = clients.get("cassandra_pu");
((PelopsClient) client).setCqlVersion()..

Hope it helps.

-Vivek

@xamry
@sachur

I think I'll go to 2.0.8
How to do it the easy way?

Thanks for your trouble

@xamry
@mevivs
Collaborator

I guess, it is no more an issue. Closing it.

@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.