You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2017/06/17 18:04:26 UTC

[jira] [Closed] (GEODE-2961) Distinct query with an or condition may miss results

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

Anthony Baker closed GEODE-2961.
--------------------------------

> 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
>            Assignee: David Anuta
>             Fix For: 1.2.0
>
>
> 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.4.14#64029)