Return-Path: X-Original-To: apmail-geode-issues-archive@minotaur.apache.org Delivered-To: apmail-geode-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBA9A18046 for ; Mon, 27 Jul 2015 23:20:15 +0000 (UTC) Received: (qmail 29588 invoked by uid 500); 27 Jul 2015 23:20:15 -0000 Delivered-To: apmail-geode-issues-archive@geode.apache.org Received: (qmail 29558 invoked by uid 500); 27 Jul 2015 23:20:15 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 29549 invoked by uid 99); 27 Jul 2015 23:20:15 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2015 23:20:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 35610C0473 for ; Mon, 27 Jul 2015 23:20:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3rlzt2Ry8bOV for ; Mon, 27 Jul 2015 23:20:05 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id AE76622F2C for ; Mon, 27 Jul 2015 23:20:05 +0000 (UTC) Received: (qmail 28592 invoked by uid 99); 27 Jul 2015 23:20:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2015 23:20:05 +0000 Date: Mon, 27 Jul 2015 23:20:05 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-91) Zero results when querying against a HashIndex indexed on PdxStrings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643591#comment-14643591 ] ASF subversion and git services commented on GEODE-91: ------------------------------------------------------ Commit 27b37efcc34f1d338bd0f6fdfb75e6265a4fefbe in incubator-geode's branch refs/heads/feature/GEODE-77 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)