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 4E26F200B52 for ; Mon, 25 Jul 2016 09:41:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4CD2D160A7D; Mon, 25 Jul 2016 07:41:13 +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 956DB160A78 for ; Mon, 25 Jul 2016 09:41:12 +0200 (CEST) Received: (qmail 81340 invoked by uid 500); 25 Jul 2016 07:41:11 -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 81326 invoked by uid 99); 25 Jul 2016 07:41:11 -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; Mon, 25 Jul 2016 07:41:11 +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 0C981C6712 for ; Mon, 25 Jul 2016 07:41:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9xI4ia1gsUcb for ; Mon, 25 Jul 2016 07:41:08 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 34B5E5FAE8 for ; Mon, 25 Jul 2016 07:41:08 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id l69so122410332lfg.1 for ; Mon, 25 Jul 2016 00:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=I2ucozlf/a2jgUWoJE2gCTtYbt9Vd78t5fQYbe5yMM0=; b=NYYI10/3nhiz1UwGd62ALXRfEqxiuXbeplYdrKCS235bLh0MTpxbMszeHV32TVDZ5s AaDnOs4u0JIgwbYftcloGx6fNkA14/RzL8AO9e20vetyJfrVTbhbwBZhzf4L1TBpY6wm 8AOoS2SaI4P1bKv1pl96YSj+u2uQcE3YsKVa7njJC1+/HTBROwmuhR+jTaKIRqzgQ3JC MotnYpOPqkH+MqNdk84AjlaEvOV2jirf8oH5AGqEHP5wJd3eKZCcJbADz4oSaUWJ78aL xBfAi+lKaL9dPgU+uAw12CjhJIgcdNSug6zQ5DCUWOSX464VXrYW7CwKXwbkhCqsP2B8 suLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=I2ucozlf/a2jgUWoJE2gCTtYbt9Vd78t5fQYbe5yMM0=; b=RrP+oKFQLCuusZJsOEb9zXZcgyFvq+Ffvfjl4JasnJE7J6wiQUyG/bisrQfEIo0sHS 0ihefjLeM8bunfGISA6dAUbDC024R0pCGLGNV9gwsPS3YkEYlyOstNFxZ+V+y0Q+wHYN yj8RGF5ta+sz4SCqo1Wg9r0PnNNeW0X3OAxEzmI60l4IaKlKUykxOueReRxj/UqxMu+S L2zCRUBFyxJQvMgzVf6brlqg4AlKki8hao52TIlfNMZy9awE34+LKvaT+b7bP/MhE7eP 9YulQrQqcdrUWtfDEgBd0DY2fzlcIPG/Rhkn4Aoyg39eUwsUFvf8cZ+l/Hhzj0LG0ktd AqIg== X-Gm-Message-State: AEkoous4f1QSFAlzPq4IoFHOHntTgiOJNwXkcxQs7JZF8RasTr8Resh2WLVN1Q7FuzlI2LGjjiAhB69SODsOaUAv X-Received: by 10.46.5.9 with SMTP id 9mr6894178ljf.17.1469432467495; Mon, 25 Jul 2016 00:41:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.205.75 with HTTP; Mon, 25 Jul 2016 00:41:06 -0700 (PDT) In-Reply-To: References: From: Alexey Kuznetsov Date: Mon, 25 Jul 2016 14:41:06 +0700 Message-ID: Subject: Re: Distributed joins for JDBC To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114a69ea3f309b053870e815 archived-at: Mon, 25 Jul 2016 07:41:13 -0000 --001a114a69ea3f309b053870e815 Content-Type: text/plain; charset=UTF-8 Why we need to *TURN ON/OFF* this mode? Why not have it always *ON*? On Mon, Jul 25, 2016 at 2:32 PM, Andrey Gura wrote: > Our JDBC drivers already have connection properties that correspond to > SqlFieldsQuery properties. So we can just add support of this parameter to > connection string parser. > > Corresponding ticket created IGNITE-3563 ( > https://issues.apache.org/jira/browse/IGNITE-3563 ). > > On Mon, Jul 25, 2016 at 10:04 AM, Sergi Vladykin > > wrote: > > > I don't think it makes sense to extend JDBC this way because usually if > one > > have access to Java API he most probably will use Ignite API. If for some > > reason they use JDBC it means that it is an application which was aimed > to > > work with any RDBMS and should not know about quirks of some particular > > driver. Take any JDBC based SQL console for example, we have to support > > them out of the box. > > > > I think we should have a connection options which we can append to JDBC > URL > > like it is done in H2: > > > > jdbc:h2:my_database;OPTION1=bla;OPTION2=blabla > > > > In our case it must be something like DISTRIBUTED_JOINS=true and it will > > affect the whole connection. > > > > Of course we have to support simultaneous connections to the same DB with > > different options. > > > > Sergi > > > > > > 2016-07-25 9:19 GMT+03:00 Semyon Boikov : > > > > > Hi, > > > > > > Last week distributed joins functionality was merged, but one thing was > > > overlooked. Distributed joins should be explicitly enabled using using > > > method 'setDistributedJoins' available in java API > > > (SqlQuery/SqlFieldsQuery). First, this parameter should be also added > in > > > .Net/C++/REST API, this is straightforward. Also there should be > > > possibility to enable distributed joins for JDBC API. Does it make > sense > > to > > > add Ignite-specific interface extending standard java.sql.Statement, so > > > 'setDistributedJoins' method can be added there. > > > JDBC API already have 'unwrap' method to deal with vendor-specific > > > interfaces, code will look like this: > > > * IgniteStatement stmt = > > > connection.createStatement().unwrap(IgniteStatement.class);* > > > * stmt.setDistributedJoins(true);* > > > * stmt.executeQuery("...");* > > > > > > What do you think? > > > > > > > > > -- > Andrey Gura > GridGain Systems, Inc. > www.gridgain.com > -- Alexey Kuznetsov GridGain Systems www.gridgain.com --001a114a69ea3f309b053870e815--