geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-91) Zero results when querying against a HashIndex indexed on PdxStrings
Date Fri, 24 Jul 2015 20:43:04 GMT

    [ https://issues.apache.org/jira/browse/GEODE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14641042#comment-14641042
] 

ASF subversion and git services commented on GEODE-91:
------------------------------------------------------

Commit 27b37efcc34f1d338bd0f6fdfb75e6265a4fefbe in incubator-geode's branch refs/heads/develop
from [~huynhja]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=27b37ef ]

GEODE-91: Zero results when querying against a HashIndex indexed on PdxStrings
Pdx string fields indexed with a hash index were not being resolved properly when doing comparisons.


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