geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Huynh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GEODE-2961) Distinct query with an or condition may miss results
Date Fri, 19 May 2017 23:42:04 GMT
Jason Huynh created GEODE-2961:
----------------------------------

             Summary: Distinct query with an or condition may miss results
                 Key: GEODE-2961
                 URL: https://issues.apache.org/jira/browse/GEODE-2961
             Project: Geode
          Issue Type: Bug
          Components: querying
            Reporter: Jason Huynh


Sample query where this may be an issue:
"select id from /region where r.status in set('active') or r.name in set('joe')"

The results will contain only one of the predicates.

The issue might be:
{noformat}
 } else if (isDistinct && !isConditioningNeeded) {
          intermediateResults = filterResults;
{noformat}
but it should probably read as:
{noformat}
 } else if (isDistinct && !isConditioningNeeded) {
          intermediateResults.addAll(filterResults);
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message