Return-Path: X-Original-To: apmail-optiq-dev-archive@minotaur.apache.org Delivered-To: apmail-optiq-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5EE7118DC for ; Tue, 23 Sep 2014 17:04:53 +0000 (UTC) Received: (qmail 46245 invoked by uid 500); 23 Sep 2014 17:04:53 -0000 Delivered-To: apmail-optiq-dev-archive@optiq.apache.org Received: (qmail 46209 invoked by uid 500); 23 Sep 2014 17:04:53 -0000 Mailing-List: contact dev-help@optiq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@optiq.incubator.apache.org Delivered-To: mailing list dev@optiq.incubator.apache.org Delivered-To: moderator for dev@optiq.incubator.apache.org Received: (qmail 37115 invoked by uid 99); 23 Sep 2014 17:00:58 -0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yash360@gmail.com designates 209.85.215.51 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ebe6/Cq0njxTNkb/cFiaRI586QvjwgdR1GQ20xScbW0=; b=Wg/spqshfdp7EmCMSidyjysu+JvKK53i7ogfSdLEU9MQUOsMKyeSW5SgpNeHpXOf1v Tk7Djmed3RCgtWWh2SrUqkdd3TZlcFNdK18073P9DFqh0PzfNryIGas9GwEqjZVMmpBC NjnG0jI7vsQ8/Oz19n/9xOFVZQjUK+Q/NtmuxaKegUOmVWnq8H55y8P3BIUxeZUYKPbW phcnHF6g/dxnNnmgvH0q2mzdNnpXV6GaBMQwIdiJ/QbCWOukVbqe0o2dwDoZ0DBE+FWU +d5kaVAa+jkIzYUJ7EQxwIqJWahEPP5hhM2Gk4t4jMtI+Qnx6v/UXLLuc6XEmng8d2SV mrDg== X-Received: by 10.112.168.38 with SMTP id zt6mr885356lbb.60.1411491632283; Tue, 23 Sep 2014 10:00:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <56CCCF79-31B1-471C-96FB-B75A0322239C@gmail.com> From: Yash Sharma Date: Tue, 23 Sep 2014 22:29:52 +0530 Message-ID: Subject: Re: Adding new drill functions to optiq syntax To: "drill-dev@incubator.apache.org" Cc: dev@optiq.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c346745886ba0503be81bf X-Virus-Checked: Checked by ClamAV on apache.org --001a11c346745886ba0503be81bf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable @Julian - I have sent the pull request. Thanks for handling the formatting and messed up order of keywords. @Venki - You were right. The JavaCC Error was occurring because the functions were already declared in CombinedParser.jj. Just another question - Would it be possible to add keywords to Registered/Non-Registered keywords via Drill directly? What changes would I have to do in the Parser.tdd. Thanks. On Tue, Sep 23, 2014 at 9:31 PM, Yash Sharma wrote: > @venki/julian: i have got a limited internet connectivity tonight. Will d= o > it first thing tomm. > > Thanks both. > On 23/09/2014 9:24 pm, "Julian Hyde" wrote: > >> It looks good. (You messed up the formatting in one place and added >> out-of-order to alphabetized lists in several places. I have fixed these= .) >> >> Please submit a pull request for your branch and I will commit with my >> changes. >> >> Julian >> >> On Sep 23, 2014, at 3:17 AM, Yash Sharma wrote: >> >> > @Jacques- I would wait for Venki's input. Till then I have created a >> patch >> > for Optiq. >> > >> > @Julian/Optiq Dev: Could you please review the commit[1] if everything >> > looks good. Also I am not able to run the test case. >> > I am using: >> > $mvn test -Dtest=3DSqlOperatorBaseTest#testStddevPopFunc >> > It is not able to recognize the test cases. >> > Works fine with -DfailIfNoTests=3Dflase flag. >> > >> > 1: >> > >> https://github.com/yssharma/incubator-optiq/commit/9a0b063adf91cee78f3d1= 67c002eb07c6fb7b9b2 >> > >> > Thanks >> > >> > >> > >> > On Tue, Sep 23, 2014 at 9:27 AM, Jacques Nadeau >> wrote: >> > >> >> I believe that Drill also allows addition of reserved words through >> some of >> >> the freemarker inclusions but could be mistaken. I think Venki could >> >> provide more input if you can't find the spot. >> >> >> >> On Mon, Sep 22, 2014 at 12:28 PM, Julian Hyde >> >> wrote: >> >> >> >>> On Sep 22, 2014, at 11:07 AM, Yash Sharma wrote: >> >>> >> >>>> Am debugging Optiqand DrillOperatorTable. >> >>>> >> >>>> Strangely this works with backticks - as pointed out by Kryatal in >> >>>> DRILL-1441 >> >>>> select `covar_pop`(employee_id, employee_id) FROM cp.`employee.json= ` >> >>> limit >> >>>> 10; >> >>> >> >>> See my comments on REPLACE in >> >>> https://issues.apache.org/jira/browse/DRILL-1441. The problems >> relate to >> >>> using a non-reserved keyword as an identifier. >> >>> >> >>> Regarding COVAR_POP. Probably something similar happening regarding >> >>> reserved words being. You should probably add it to >> >> ReservedFunctionName(), >> >>> just like VAR_POP and STDEV_POP. That is probably tricky to do in >> Drill =E2=80=94 >> >>> so I suggest you contribute an Optiq patch. Be sure to add tests to >> >>> SqlOperatorBaseTest along the lines of testVarPopFunc. >> >>> >> >>> Julian >> >>> >> >>> >> >> >> >> --001a11c346745886ba0503be81bf--