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 4F9D4200BCA for ; Mon, 7 Nov 2016 07:09:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4E1ED160B0D; Mon, 7 Nov 2016 06:09:58 +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 93D79160AFC for ; Mon, 7 Nov 2016 07:09:57 +0100 (CET) Received: (qmail 31790 invoked by uid 500); 7 Nov 2016 06:09:56 -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 31774 invoked by uid 99); 7 Nov 2016 06:09:56 -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, 07 Nov 2016 06:09:56 +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 C8062C81B8 for ; Mon, 7 Nov 2016 06:09:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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 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 H69rkTxzvpwV for ; Mon, 7 Nov 2016 06:09:55 +0000 (UTC) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D15CF5FD0A for ; Mon, 7 Nov 2016 06:09:54 +0000 (UTC) Received: by mail-vk0-f43.google.com with SMTP id w194so112948757vkw.2 for ; Sun, 06 Nov 2016 22:09:54 -0800 (PST) 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=rxLjyHXtRDBXhTG8HRVHHrKrJB426JSXB3ujVlOy0D4=; b=FpL8FDKAp7z085HSQosGV7uXPUwfDMdM7oyRTqMS9rUVpvjlbiAobnLFjDdkhDwiTR tPeDDI6bY3mHHJq/SMF7JqXTDoSgMhzA0G1puhr1s/ijnRc94RX/WN/Trr6XXys+SQ5F X198QMKNJZS5LJdl2qbIDfZC8iAff0V5X3Lihor9/kgbJm7UlpUNRCn2Gyeb3qAYnFDF Fz5OI7n+Uw5ozjy13WEeaiNPeTStaM3HzMs6Bx4QgeDWjTksNViqlkzA9MVKg3Xmm09E 78K8meuBc6gja3A+cZUj6WxJo/pcIAYvAd6KOghmo5hnmPjcfDLYnOsaVIE9fBelxXOH m5ww== 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=rxLjyHXtRDBXhTG8HRVHHrKrJB426JSXB3ujVlOy0D4=; b=SLA1jOh8emX9jlhhnEbmbwpWCp+4z29neRakXn4rqjOt/iVfIM8s/O66f/qC0sV4O7 k2LnsNyOY3LyP+F3VrMc068p4cRVpIHwfQmFd/BIsqN/Wtg2x2Dnnzw/8ew7M4nMAABn wM5gKpirvrGYV9h1oC4t7MTzMMCp867i71LsSmYIV68vawhTBvU17JWzB3+9m1qZfWh/ Na3Z04YtOmHXX3b/VzGlh/k7TQFXBeZsml7sztNxeUiASGbaqaRiV5gA0Y0DCEZqKSeL 7JTJ1OaU6CovtofrFcoySdO0adlkOB8XFA4DHRd0b+ARA7oybxU/AXd9Yz9EgH7yM09l 75nQ== X-Gm-Message-State: ABUngvdapJobRtbhV1z214SZ7/kM5/FsUFx7Ojlz6qDFwC6gWIk2iGWTtYv01z/4p1xjjgGyyMOwaUDCwMjFF7A5 X-Received: by 10.31.69.80 with SMTP id s77mr2425092vka.37.1478498987677; Sun, 06 Nov 2016 22:09:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.4.110 with HTTP; Sun, 6 Nov 2016 22:09:47 -0800 (PST) Received: by 10.176.4.110 with HTTP; Sun, 6 Nov 2016 22:09:47 -0800 (PST) In-Reply-To: References: From: Vladimir Ozerov Date: Mon, 7 Nov 2016 09:09:47 +0300 Message-ID: Subject: Re: IGNITE-3999: Design discussion To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114db57ef62be40540afde8b archived-at: Mon, 07 Nov 2016 06:09:58 -0000 --001a114db57ef62be40540afde8b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Amir, Having POJO class QueryField looks like a good idea to me. Because we will be able to encapsulate more field information into it over time. E.g. we can add "keyField" flag for DML there. I would even think about removing map from method signature in favor of simple list/array: void setFields(QueryField...); Vladimir. 07 =D0=BD=D0=BE=D1=8F=D0=B1. 2016 =D0=B3. 7:32 =D0=BF=D0=BE=D0=BB=D1=8C=D0= =B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Amir Akhmedov" =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: Hi Igniters, I was looking into ticket IGNITE-3999 and I have a concern on this, can you please advise what will be the correct way to solve it. As of today, SQL fields are defined as setFields(LinkedHashMap fields), with introduction of case insensitive property need to create a new POJO e.g. QueryField(String type, boolean caseInsensitive). So, to keep backward compatibility we can introduce a new method e.g. setQueryFields(LinkedHashMap fields), in my opinion it looks like counter-intuitive with existing setFields method. Another possible way, this change can be done with changing the generic type of setFields (which will not be backward compatible) and released in Ignite 2.0. Please advise on this, or maybe you have an alternative solutions? -- Sincerely Yours Amir Akhmedov --001a114db57ef62be40540afde8b--