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 5263D200B6B for ; Thu, 25 Aug 2016 20:32:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 50DC4160ABD; Thu, 25 Aug 2016 18:32:31 +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 99835160AA4 for ; Thu, 25 Aug 2016 20:32:30 +0200 (CEST) Received: (qmail 50865 invoked by uid 500); 25 Aug 2016 18:32:29 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 50840 invoked by uid 99); 25 Aug 2016 18:32:29 -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; Thu, 25 Aug 2016 18:32:29 +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 05151C8283 for ; Thu, 25 Aug 2016 18:32:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.721 X-Spam-Level: X-Spam-Status: No, score=-0.721 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=cloudera-com.20150623.gappssmtp.com Received: from mx2-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 hFsJ7RUsRylv for ; Thu, 25 Aug 2016 18:32:28 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 0B65B5FC14 for ; Thu, 25 Aug 2016 18:32:28 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id q128so250370100wma.1 for ; Thu, 25 Aug 2016 11:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudera-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=F5brN5zTZzhDUedOM96g6kWRSI9DgxwNcpHvQT4/yBo=; b=Fd4OQzwU8ETfyxH5bl6Y52vbUU/MFyeOZzWO8hNbzkcPXrBBPMGRQ1tSh7rvnCEzRl H6rFgYqs0k1X92JAJLA3bk20iLZhT1dAHABhIUY10WDlVATBwFfnWzldJcrZnfmn9X3H Pb5FqVbjop714pYjl2WhQZMxak9yiLEejpFBg3AvPoqnZyN5wSbOiXc26Vjh9Y06dhx4 JyTvZivkqaB2wHPIYpwGtmWJbJbxE83oFICQdwrH9cq8+13dAr7Ffcob6VwS/R+wbMXb 6U31ckeJcochjPDz6hrXWiMPPuPqcHXcgxdgxeuN6V9z7aNMSQLnNU1fH9oBaV7PhJua 5BGw== 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:content-transfer-encoding; bh=F5brN5zTZzhDUedOM96g6kWRSI9DgxwNcpHvQT4/yBo=; b=c5PlEA4d4Ud61GmjInuQ/HJNFXSuwKYJY111thXpXQGUdKbxOc0A/Noze+TQa9CYaR JNsaa0xUs8583IVhHGDg+AglYOEUT+AVF6SM9TOjidzPpBzfVNrbwABBYGB7i0RavEMa r2Q7dQS0N4h1pWJiZmkeMIUNNyW/cwfmEn669IEQPjoWb7Y3SSbErQbCu1RBO5+X0lrD OVxuWCMJjZrP889JHgQuAJHOolioCPjUQl1xf+xFvR4MQoDtteAjWJ/uKP0rN9akyztb UorPQ0+kVvJZ7lEPn/mF32BUu9cCbJRQt7pOXFX5qmZhdvHodMxTvHreG0JDkfsDzDhf kCcw== X-Gm-Message-State: AEkoouuI2BBNou0gHGUSvVAC1sQ2XvzoOO5Ic9rHqUS4s5NquSUZfAJSeCv1IN35L+7GNa5qGObfRR/Qy2mXjPUg X-Received: by 10.28.150.146 with SMTP id y140mr32964689wmd.32.1472149945896; Thu, 25 Aug 2016 11:32:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.58.80 with HTTP; Thu, 25 Aug 2016 11:31:45 -0700 (PDT) In-Reply-To: <797156FCE8D62647ACAD8781B86C842E396CA5ED@SHSMSX101.ccr.corp.intel.com> References: <797156FCE8D62647ACAD8781B86C842E396CA5ED@SHSMSX101.ccr.corp.intel.com> From: Jim Apple Date: Thu, 25 Aug 2016 11:31:45 -0700 Message-ID: Subject: Re: A question about associating front-end expression with back-end implementation To: "dev@impala" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Thu, 25 Aug 2016 18:32:31 -0000 > This ERROR is thrown by a routine in the TrimExpr.java But you wrote that file, right? > So here comes my question: how to associate the front-end expression code= d in the sql-parser.cup with back-end implementation? I know there exists s= ome other similar function named extract(IDENT from Timestamp) which is imp= lemented in the udf-builtins.h and I have done the same thing. But that doe= s not work - so I must miss something important. In what way does it not work? The way above? It looks like you didn't change getFunctionNotFoundError correctly. I don't think you want to do something different than ExtractFromExpr, but it looks like you didn't get the changes needed correctly yet.