Re: Ignite/Cassandra failing to use supplied value for where clause

2017-11-09 Thread Andrey Mashenkov
Why Test1Key.id field is transient? Will it works if you remove transient modifier? Also, please check if you get value for key with 'null' id field. On Thu, Nov 9, 2017 at 5:49 PM, Kenan Dalley wrote: > I don't see how because this is what's in the table. And the code >

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-11-09 Thread Kenan Dalley
I don't see how because this is what's in the table. And the code specifically sets the "myId" to a value before it runs. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-11-02 Thread Kenan Dalley
Hi Andrey, I tried taking pieces from your example and I still couldn't make it work. First, I removed the annotations out of the POJOs and physically mapped the information in the persistence settings. Still got the error with "my_id". Second, I tried adding the QueryEntity xml config you

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-11-01 Thread Andrey Mashenkov
Got it. Seems, CassandraStore doesn't supports storeKeepBinary(true) flag. On Wed, Nov 1, 2017 at 8:04 PM, Andrey Mashenkov wrote: > Hi Kenan, > > Looks like annotation configuration is not allowed together with xml > comfiguration. > I wonder there was no

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-11-01 Thread Andrey Mashenkov
Hi Kenan, Looks like annotation configuration is not allowed together with xml comfiguration. I wonder there was no Exception. I've made an example with all mapping configured in xml and got no errors. Please, check an example that workable for me [1]. [1]

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-27 Thread Kenan Dalley
So can someone try to take my example and actually get it to work? It's baffling to me why this fails as it does. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-25 Thread Kenan Dalley
Yeah, sorry about the confusion. I was playing around with the field names to see if that was a possible issue and had refactored the "Test1Key.id" field to "Test1Key.myId". It should have been "myId" originally since the column name was "my_id" (see the updated Test1Key below). I'm just not

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-25 Thread Andrey Mashenkov
Kenan, I've found there is an issue that can cause unexpected behavior when using Cassandra keyPersistence configuration with Ignite annotations [1]. But XML way should work. I'm confused as in first message you wrote Test1Key has 'id' field, in last message it has 'my_id' field and 'myId' in

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-25 Thread Kenan Dalley
I don't understand what the reasoning behind manually setting the IndexedType pair in the configuration. Yes, this is a field that is indexed, but the problem is that it's not correctly pulling the data from C* and it's worked in the past with other C* tables/caches via @Annotation without the

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-25 Thread Andrey Mashenkov
Kenan, You can try to set IndexedType pair to cache configuration [1] to force Ignite process annotations on Key\Value classes. [1] https://apacheignite.readme.io/docs/indexes#section-registering-indexed-types On Tue, Oct 24, 2017 at 11:00 PM, Kenan Dalley wrote: > These

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-24 Thread Kenan Dalley
These were included in the project file link in the initial post. Here they are in text for reference. The only thing not posted is the pom.xml and it's just standard SpringBoot Ignite w/ Cassandra. cassandra-ignite.xml test1-cassandra-persistence-settings.xml cassandra-connection-settings.xml

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-24 Thread Andrey Mashenkov
Hi Kenan, Seems, column mapping is missed. You mix annotation configuration via @QuerySqlField annotation and creating table via "CREATE TABLE". I'm not sure it can work this way. Seems, you have neither QueryEntities configured nor IndexedTypes to Ignite can process annotations and know about

Re: Ignite/Cassandra failing to use supplied value for where clause

2017-10-23 Thread Kenan Dalley
Here's the C* setup: -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Ignite/Cassandra failing to use supplied value for where clause

2017-10-23 Thread Kenan Dalley
I've got to be missing something simple here, but I'm having trouble with Ignite calling C* with the POJO key that I'm supplying it when it tries to "cache.get". Whenever I try to supply the "cache.get" method with my POJO key, it complains that it's null when it tries to execute the CQL. I've