Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BE89A200B38 for ; Fri, 8 Jul 2016 13:28:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BD40A160A5A; Fri, 8 Jul 2016 11:28:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 12208160A58 for ; Fri, 8 Jul 2016 13:28:16 +0200 (CEST) Received: (qmail 28107 invoked by uid 500); 8 Jul 2016 11:28:11 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 27984 invoked by uid 99); 8 Jul 2016 11:28:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2016 11:28:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1E0AC2C029F for ; Fri, 8 Jul 2016 11:28:11 +0000 (UTC) Date: Fri, 8 Jul 2016 11:28:11 +0000 (UTC) From: "Semen Boikov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-3448) Wrong count returned by count distinct and similar queries. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Jul 2016 11:28:17 -0000 [ https://issues.apache.org/jira/browse/IGNITE-3448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Semen Boikov updated IGNITE-3448: --------------------------------- Component/s: SQL > Wrong count returned by count distinct and similar queries. > ----------------------------------------------------------- > > Key: IGNITE-3448 > URL: https://issues.apache.org/jira/browse/IGNITE-3448 > Project: Ignite > Issue Type: Bug > Components: SQL > Reporter: Alexei Scherbakov > > Partitioned cache is deployed on 3 nodes. > The code below outputs incorrect counts: > 14 > 14 > {code} > IgniteCache cache = grid(0).cache(null); > cache.put(0, new Value("v1")); > cache.put(3, new Value("v1")); > cache.put(5, new Value("v1")); > cache.put(9, new Value("v1")); > cache.put(1, new Value("v3")); > cache.put(15, new Value("v3")); > cache.put(8, new Value("v3")); > cache.put(2, new Value("v5")); > cache.put(12, new Value("v5")); > cache.put(4, new Value("v2")); > cache.put(6, new Value("v2")); > cache.put(7, new Value("v6")); > cache.put(10, new Value("v7")); > cache.put(11, new Value("v8")); > cache.put(13, new Value("v4")); > cache.put(14, new Value("v4")); > QueryCursor> qry = cache.query(new SqlFieldsQuery("select count(distinct str) from Value")); > for (List objects : qry) > System.out.println(objects.get(0)); > qry = cache.query(new SqlFieldsQuery("select count(*) from (select 1 from Value group by str)")); > for (List objects : qry) > System.out.println(objects.get(0)); > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)