geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Baker (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEODE-91) Zero results when querying against a HashIndex indexed on PdxStrings
Date Fri, 08 Jan 2016 04:40:48 GMT

     [ https://issues.apache.org/jira/browse/GEODE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Anthony Baker updated GEODE-91:
-------------------------------
    Fix Version/s: 1.0.0-alpha1

> Zero results when querying against a HashIndex indexed on PdxStrings 
> ---------------------------------------------------------------------
>
>                 Key: GEODE-91
>                 URL: https://issues.apache.org/jira/browse/GEODE-91
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>            Reporter: Jason Huynh
>            Assignee: Jason Huynh
>             Fix For: 1.0.0-alpha1
>
>
> When a hash index is indexed on a pdx string, the hash index on reevaluation will not
correctly compare the strings.
> The following test will fail:
> public void testPdxWithStringIndexKeyValues() throws Exception {
>     createPartitionedRegion("test_region");
>     int numEntries = 10;
>     Index index = qs.createHashIndex("idHash", "p.id", "/test_region p");
>     for (int i = 0; i < numEntries; i++) {
>       PdxInstance record = CacheUtils.getCache().createPdxInstanceFactory("test_region").writeString("id",
"" + i).writeString("domain", "A").create();
>       region.put("" + i, record);
>     }
>     SelectResults results = (SelectResults) qs.newQuery(
>         "SELECT DISTINCT tr.domain FROM /test_region tr WHERE tr.id='1'").execute();
>     assertEquals(1, results.size());
>     assertTrue(observer.indexUsed);
>   }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message