timoninmaxim commented on code in PR #13744:
URL: https://github.com/apache/ignite/pull/13744#discussion_r4372010096


##########
modules/indexing/src/test/java/org/apache/ignite/cache/query/IndexQueryLocalTest.java:
##########
@@ -99,6 +102,44 @@ public void testServerNodePartitionedCache() {
         assertEquals(CNT / 2, resultSize);
     }
 
+    /** Should return deserialized values for a cache that is not in 
keep-binary mode. */
+    @Test
+    public void testLocalQueryReturnsDeserializedValues() {
+        IgniteCache<Long, Person> cache = 
crd.createCache(ccfg(CacheMode.REPLICATED));
+
+        insertData(crd, cache);
+
+        IndexQuery<Long, Person> qry = new IndexQuery<Long, 
Person>(Person.class, IDX)
+            .setCriteria(lt("id", CNT / 2));
+
+        List<Cache.Entry<Long, Person>> res = 
cache.query(qry.setLocal(true)).getAll();
+
+        for (Cache.Entry<Long, Person> e : res)
+            assertEquals(new Person(e.getKey().intValue()), e.getValue());
+
+        assertEquals(CNT / 2, res.size());
+    }
+
+    /** Should keep binary values for a cache in keep-binary mode. */
+    @Test
+    public void testLocalQueryKeepBinaryReturnsBinaryValues() {
+        IgniteCache<Long, Person> cache = 
crd.createCache(ccfg(CacheMode.REPLICATED));

Review Comment:
   This test don't check binary key. Long should be replaced with POJO



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to