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 3B4CF200D2D for ; Thu, 12 Oct 2017 14:43:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3A2AF1609CD; Thu, 12 Oct 2017 12:43:07 +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 85BB9160BE4 for ; Thu, 12 Oct 2017 14:43:06 +0200 (CEST) Received: (qmail 36691 invoked by uid 500); 12 Oct 2017 12:39:24 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 33629 invoked by uid 99); 12 Oct 2017 12:36:47 -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, 12 Oct 2017 12:36:47 +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 8885EC5BB5 for ; Thu, 12 Oct 2017 12:32:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled 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 tat2Vij8jK_4 for ; Thu, 12 Oct 2017 12:32:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A4D0460DF3 for ; Thu, 12 Oct 2017 12:32:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9C173E105A for ; Thu, 12 Oct 2017 12:32:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B5BA223F97 for ; Thu, 12 Oct 2017 12:32:00 +0000 (UTC) Date: Thu, 12 Oct 2017 12:32:00 +0000 (UTC) From: "Fabian Hueske (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FLINK-5564) Add User Defined Aggregates in Table API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 Oct 2017 12:43:07 -0000 [ https://issues.apache.org/jira/browse/FLINK-5564?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabian Hueske closed FLINK-5564. -------------------------------- Resolution: Implemented Fix Version/s: 1.3.0 UDAGGs were added with Flink 1.3.0 > Add User Defined Aggregates in Table API > ---------------------------------------- > > Key: FLINK-5564 > URL: https://issues.apache.org/jira/browse/FLINK-5564 > Project: Flink > Issue Type: Improvement > Components: Table API & SQL > Reporter: Shaoxuan Wang > Assignee: Shaoxuan Wang > Priority: Critical > Fix For: 1.4.0, 1.3.0 > > > User-defined aggregates would be a great addition to the Table API / SQL. > The current aggregate interface is not well suited for the external users= . This issue proposes to redesign the aggregate such that we can expose an= better external UDAGG interface to the users. The detailed design proposal= can be found here: https://docs.google.com/document/d/19JXK8jLIi8IqV9yf7hO= s_Oz67yXOypY7Uh5gIOK2r-U/edit > Motivation: > 1. The current aggregate interface is not very concise to the users. One = needs to know the design details of the intermediate Row buffer before impl= ements an Aggregate. Seven functions are needed even for a simple Count agg= regate. > 2. Another limitation of current aggregate function is that it can only b= e applied on one single column. There are many scenarios which require the = aggregate function taking multiple columns as the inputs. > 3. =E2=80=9CRetraction=E2=80=9D is not considered and covered in the curr= ent Aggregate. > 4. It might be very good to have a local/global aggregate query plan opti= mization, which is very promising to optimize UDAGG performance in some sce= narios. > Proposed Changes: > 1. Implement an aggregate dataStream API (Done by [FLINK-5582|https://iss= ues.apache.org/jira/browse/FLINK-5582]) > 2. Update all the existing aggregates to use the new aggregate dataStream= API > 3. Provide a better User-Defined Aggregate interface > 4. Add retraction support > 5. Add local/global aggregate -- This message was sent by Atlassian JIRA (v6.4.14#64029)