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 535D5200D03 for ; Sat, 9 Sep 2017 20:27:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4782E1609B5; Sat, 9 Sep 2017 18:27:46 +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 8B6571609B3 for ; Sat, 9 Sep 2017 20:27:45 +0200 (CEST) Received: (qmail 25869 invoked by uid 500); 9 Sep 2017 18:27:42 -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 25858 invoked by uid 99); 9 Sep 2017 18:27:42 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Sep 2017 18:27:42 +0000 Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 341C71A00C5 for ; Sat, 9 Sep 2017 18:27:41 +0000 (UTC) Received: by mail-io0-f172.google.com with SMTP id i14so11171553ioe.2 for ; Sat, 09 Sep 2017 11:27:41 -0700 (PDT) X-Gm-Message-State: AHPjjUiWyieNDUIX0EBF2MSz+rNQf4u8Bi8tJMA9eNm3MzlJD/nYAN9h HkRRd3uTCbEtXstWiTj0IaMTtvFT1T9Q X-Google-Smtp-Source: ADKCNb6DyD+vkcZIupyxqpYvRTsXHOfSWnJcgW88aull3qFvG36fvID7c+Z4DUDv32fQuEG9dMLAdXKuT60R7cUXKUI= X-Received: by 10.107.131.152 with SMTP id n24mr2539098ioi.55.1504981661410; Sat, 09 Sep 2017 11:27:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.34.129 with HTTP; Sat, 9 Sep 2017 11:27:00 -0700 (PDT) In-Reply-To: References: From: Dmitriy Setrakyan Date: Sat, 9 Sep 2017 11:27:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Add ANTLR dependency (BSD!) to Apache Ignite To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="001a113ecf8a5290f20558c5d9d1" archived-at: Sat, 09 Sep 2017 18:27:46 -0000 --001a113ecf8a5290f20558c5d9d1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Vova, We need to start from performance evaluation before we integrate ANTLR into our product. Otherwise, it will be hard to abandon it in future. D. On Sat, Sep 9, 2017 at 7:57 AM, Vladimir Ozerov wrote: > Dima, > > Manual parsing is too hard to implement. More precisely - too time > consuming. ANTLR will let us add more and more grammar with minimal > efforts. > > Immediate benefits for the project: > 1) Nice CREATE TABLE syntax > 2) Ability to add any administrative commands we want. E.g. "CLUSTER > ACTIVATE", "CREATE CACHE". > > Long-term benefits: > 1) Nice syntax all over our SQL (e.g. we will be able to tune single SELE= CT > with hints, instead of current ugly flags on SqlFieldsQuery) > 2) Nice and consistent error messages > 3) Full control on what we support and what we don't > 4) Removing dependency on H2 > > Performance will be evaluated separately [1]. > > [1] https://issues.apache.org/jira/plugins/servlet/mobile# > issue/IGNITE-6320 > > > > =D0=BF=D1=82, 8 =D1=81=D0=B5=D0=BD=D1=82. 2017 =D0=B3. =D0=B2 21:01, Dmit= riy Setrakyan : > > > Vova, license-wise it is OK, but I do not like adding the dependency. > Right > > now we have H2 doing parsing for us. Why would ANTLR be better? What > > happens when we potentially notice a performance issue or any other iss= ue > > in ANTLR under load? > > > > Can we try doing parsing ourselves instead of adding a dependency? > > > > D. > > > > On Fri, Sep 8, 2017 at 2:23 AM, Vladimir Ozerov > > wrote: > > > > > Igniters, > > > > > > We are evaluating ANTLR [1] as a parser generator for our SQL engine > [2]. > > > At first glance it looks very good, we already able to parse certain > SQL > > > commands with it. If implemented, it would greatly improve usability = of > > our > > > SQL engine. However, it goes under BSD license and require one small > > > runtime dependency "antlr-runtime" [3]. > > > > > > I need assistance form someone with greater experience with different > > > licences - is it fine to add this dependency to Ignite? Would it > violate > > > ASF licensing rules? > > > > > > AFAIK other ASF projects use it, e.g. Hive [4]. > > > > > > Vladimir. > > > > > > [1] http://www.antlr.org/ > > > [2] https://issues.apache.org/jira/browse/IGNITE-6276 > > > [3] https://mvnrepository.com/artifact/org.antlr/antlr-runtime > > > [4] https://github.com/apache/hive/blob/master/ql/pom.xml#L165 > > > > > > --001a113ecf8a5290f20558c5d9d1--