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 E7331200C00 for ; Wed, 18 Jan 2017 23:05:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E5D2B160B43; Wed, 18 Jan 2017 22:05:22 +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 16331160B22 for ; Wed, 18 Jan 2017 23:05:21 +0100 (CET) Received: (qmail 10156 invoked by uid 500); 18 Jan 2017 22:05:21 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 10139 invoked by uid 99); 18 Jan 2017 22:05:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 22:05:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 89504C1A4A for ; Wed, 18 Jan 2017 22:05:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 16xVqVrwlU3X for ; Wed, 18 Jan 2017 22:05:18 +0000 (UTC) Received: from mail-yb0-f181.google.com (mail-yb0-f181.google.com [209.85.213.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5CA525F477 for ; Wed, 18 Jan 2017 22:05:18 +0000 (UTC) Received: by mail-yb0-f181.google.com with SMTP id l23so8635850ybj.2 for ; Wed, 18 Jan 2017 14:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=C3XWSfWGl0//DRbtlOZP2Z8Uz9yZZoEAlVhFNEv0Smo=; b=iVhK39E+4YgAfg1NnKjqPHL1kpunIf1+RjlrhMy0KJptV9WV1dnu0tcEcAFSEy9S9+ lUMHzPpDBR2DOGSoabY0XOYKPev2i5a5oyWfIAWKQ6hoq1twBc4v0TVagTg9uUW+fM9f Ej981TGyIyHgrdivXt20QbtSXo7iNlsp4evbKm1KoHeIUAf+z3VvStBjZfBJ566AlzFk ZqljCx2PMn15J0b0GhqnowIiuquHiN4lVssC5EJGvPTnWdIkJicEKbdyBLQTwCPYZMWp gVl7XBBfjjM/5nXnCcgmoSY/NW/p4T+apA7+pnB968fDOmtirI98ZPyUqAOOaYdlSM6x tcVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=C3XWSfWGl0//DRbtlOZP2Z8Uz9yZZoEAlVhFNEv0Smo=; b=puzG+ejhgsNL0P0GAXMLyccDjL5ty8W2J+RxzbsnBU3CfO54fxQMtOX8QdC3UeL55B nenmr2e9S2AGrrcQaq9UAKMNy7fIBnOFHrsEE5/cb+8gTQ/9U6GMXKDa1UK3khGXKrtL FjUEJK6gjqsNJ1ZnlLvMsTCTERHUtzW8pORsYZBsRdk4nhc7WwC445LlQ5Y5kpaZSjP6 Zt3WbNpffQqMy8dojjVVkPRrY80A+rI3qaHdR7rMd+NJJxPWenyX+Kf+m0BRcQZk8CAS 2Nq6rPJ7VPe0v4fH26KcZNi45qa3FjVR7rfVU+sBFkgfST0bVc2xI8OE03QG0vl7xtFZ /IhA== X-Gm-Message-State: AIkVDXIlPg/TNpLnFYIgqtIYk6MgbZmRpTrj6baRrZpz13xK1zHEkUVJ8pqv9Lhegux8ArCyaMNeyu6VPPE5Cg== X-Received: by 10.37.66.17 with SMTP id p17mr3963741yba.46.1484777097685; Wed, 18 Jan 2017 14:04:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.82.13 with HTTP; Wed, 18 Jan 2017 14:04:57 -0800 (PST) In-Reply-To: References: From: Alexei Scherbakov Date: Thu, 19 Jan 2017 01:04:57 +0300 Message-ID: Subject: Re: Allow distributed SQL query execution over explicit set of partitions To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114518607a70610546659bdd archived-at: Wed, 18 Jan 2017 22:05:23 -0000 --001a114518607a70610546659bdd Content-Type: text/plain; charset=UTF-8 I mean distributed joins. 2017-01-19 0:10 GMT+03:00 Alexei Scherbakov : > Guys, > > I've finished adding API changes and implemented proper nodes routing. > > Currently it doesn't work with distributed queries.But I think this > feature should be compatible with it. > > Could anyone take a look at current branch state while I'm looking deeper > into dsitributed queries code? > > Issue: https://issues.apache.org/jira/browse/IGNITE-4523 > PR: https://github.com/apache/ignite/pull/1418 > > > > 2017-01-13 15:55 GMT+03:00 Alexei Scherbakov >: > >> OK, let's do it this way. >> >> >> >> >> >> 2017-01-13 13:27 GMT+03:00 Sergi Vladykin : >> >>> Internally we still use int[] when we send partitions (see >>> GridH2QueryRequest.parts). It looks like we only do more work with >>> PartitionSet. >>> >>> I like the idea of bitset for partitions, but >>> >>> 1. We have to change internals first to use it, otherwise the >>> optimization >>> makes no sense. >>> 2. We will need to have a method SqlQuery.setPartitions(int... parts) for >>> usability reasons anyways. >>> >>> Thus I suggest for now to go the straightforward way with int[] and >>> create >>> a separate ticket describing the optimization with bitset. >>> >>> Sergi >>> >>> 2017-01-13 13:06 GMT+03:00 Alexei Scherbakov < >>> alexey.scherbakoff@gmail.com>: >>> >>> > PartitionSet hides internal implementation of int array. >>> > >>> > This allows as to efficiently represent contiguous range of partitions >>> and >>> > defines clear API for ordered iteration over partitions and containment >>> > check. >>> > >>> > Even better to go with compressed bitmap, as I mentioned in ticket >>> comment. >>> > This will allow us to minimize heap footprint for this object. >>> > >>> > Moreover, it will be useful to create reusable compressed bitmap >>> > implementation in Ignite and use it in other cases, on example, for >>> > replacing H2's IntArray and Set. >>> > >>> > Should I create a ticket for this ? >>> > >>> > . >>> > >>> > 2017-01-13 1:01 GMT+03:00 Dmitriy Setrakyan : >>> > >>> > > On Thu, Jan 12, 2017 at 6:12 AM, Sergi Vladykin < >>> > sergi.vladykin@gmail.com> >>> > > wrote: >>> > > >>> > > > I looked at the code. The PartitionSet concept looks >>> overengineered to >>> > > me, >>> > > > why wouldn't we just go with int[]? >>> > > > >>> > > >>> > > Agree. >>> > > >>> > > >>> > > > >>> > > > Sergi >>> > > > >>> > > > 2017-01-12 15:18 GMT+03:00 Alexei Scherbakov < >>> > > alexey.scherbakoff@gmail.com >>> > > > >: >>> > > > >>> > > > > Done. >>> > > > > >>> > > > > 2017-01-11 20:39 GMT+03:00 Dmitriy Setrakyan < >>> dsetrakyan@apache.org >>> > >: >>> > > > > >>> > > > > > Alexey, >>> > > > > > >>> > > > > > I am not sure I am seeing the API changes documented in the >>> ticket. >>> > > Can >>> > > > > you >>> > > > > > please either document them or add GIT links for the new >>> classes? >>> > > > > > >>> > > > > > D. >>> > > > > > >>> > > > > > On Wed, Jan 11, 2017 at 9:29 AM, Alexei Scherbakov < >>> > > > > > alexey.scherbakoff@gmail.com> wrote: >>> > > > > > >>> > > > > > > Guys, >>> > > > > > > >>> > > > > > > I've just submitted a PR for >>> > > > > > > https://issues.apache.org/jira/browse/IGNITE-4523. >>> > > > > > > >>> > > > > > > Please review API changes while waiting for TC results. >>> > > > > > > >>> > > > > > > -- >>> > > > > > > >>> > > > > > > Best regards, >>> > > > > > > Alexei Scherbakov >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > -- >>> > > > > >>> > > > > Best regards, >>> > > > > Alexei Scherbakov >>> > > > > >>> > > > >>> > > >>> > >>> > >>> > >>> > -- >>> > >>> > Best regards, >>> > Alexei Scherbakov >>> > >>> >> >> >> >> -- >> >> Best regards, >> Alexei Scherbakov >> > > > > -- > > Best regards, > Alexei Scherbakov > -- Best regards, Alexei Scherbakov --001a114518607a70610546659bdd--