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 7917D200BC7 for ; Thu, 10 Nov 2016 23:07:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7617F160AF7; Thu, 10 Nov 2016 22:07:01 +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 C3B9C160B01 for ; Thu, 10 Nov 2016 23:07:00 +0100 (CET) Received: (qmail 1903 invoked by uid 500); 10 Nov 2016 22:06:59 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 1728 invoked by uid 99); 10 Nov 2016 22:06:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 22:06:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6D3862C2B10 for ; Thu, 10 Nov 2016 22:06:59 +0000 (UTC) Date: Thu, 10 Nov 2016 22:06:59 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3355) Register Phoenix built-in functions as Calcite functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Nov 2016 22:07:01 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655298#comment-15655298 ] ASF GitHub Bot commented on PHOENIX-3355: ----------------------------------------- GitHub user lomoree opened a pull request: https://github.com/apache/phoenix/pull/222 PHOENIX-3355 Register Phoenix built-in functions as Calcite functions This patch works for nearly all built in functions. Aggregate functions are not yet supported. Ultimately we may want to rework: - The use of parse nodes as a factory - Generic return types to explicit return types These issues are hand in hand as abstract built in functions (NowFunction, FloorFunction) are where the parse node factory & generic return types are necessary. Potential resolution from my point of view is 2 parts - Create a link somewhere between an abstract function and its concrete implementations (maybe require inheritance, create an annotation that links the abstract function to its implementations, or include the logic in the below mentioned factory) - Create a new factory that replaces the use of parse nodes You can merge this pull request into a Git repository by running: $ git pull https://github.com/bloomberg/phoenix builtinfunctions Alternatively you can review and apply these changes as the patch at: https://github.com/apache/phoenix/pull/222.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #222 ---- commit 3f5d65ced67db31d2cd638e66a2ff0f93ae07e5a Author: Eric Date: 2016-10-20T19:49:56Z Builtin functions initial commit commit 524423220e90205c40748f4b9e3339ad8e4ba315 Author: Eric Date: 2016-10-31T17:49:13Z Argument overloading support commit 53cc70317414f72650b3cff1649fbcf0ad5edf25 Author: ERIC LOMORE Date: 2016-11-02T20:14:01Z Integration tests commit b0cd8fa3f8229a54074d3d38e05b4ce09b6c99b1 Author: ERIC LOMORE Date: 2016-11-09T21:44:17Z Use parsenode as a factory commit 6c94c2290521d11313edf64e930ba9f687ed7861 Author: ERIC LOMORE Date: 2016-11-09T22:30:10Z Generic return types - temp fix ---- > Register Phoenix built-in functions as Calcite functions > -------------------------------------------------------- > > Key: PHOENIX-3355 > URL: https://issues.apache.org/jira/browse/PHOENIX-3355 > Project: Phoenix > Issue Type: Bug > Reporter: James Taylor > Assignee: Eric Lomore > Labels: calcite > Attachments: PHOENIX-3355.function_constructor.patch, PHOENIX-3355.wip, PHOENIX-3355.wip2 > > > We should register all Phoenix built-in functions that don't exist in Calcite. -- This message was sent by Atlassian JIRA (v6.3.4#6332)