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 0DFB4200BD1 for ; Sun, 13 Nov 2016 10:15:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0CC4B160AF8; Sun, 13 Nov 2016 09:15: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 5A525160B17 for ; Sun, 13 Nov 2016 10:15:00 +0100 (CET) Received: (qmail 55938 invoked by uid 500); 13 Nov 2016 09:14:59 -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 55675 invoked by uid 99); 13 Nov 2016 09:14:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2016 09:14:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 33D772C4C76 for ; Sun, 13 Nov 2016 09:14:59 +0000 (UTC) Date: Sun, 13 Nov 2016 09:14:59 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4937) Add incremental group window aggregation for streaming Table API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 13 Nov 2016 09:15:01 -0000 [ https://issues.apache.org/jira/browse/FLINK-4937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15661167#comment-15661167 ] ASF GitHub Bot commented on FLINK-4937: --------------------------------------- Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2792#discussion_r87708469 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/runtime/aggregate/AggregateUtil.scala --- @@ -61,25 +61,108 @@ object AggregateUtil { * }}} * */ - def createOperatorFunctionsForAggregates( + def createOperatorFunctionsForAggregates( --- End diff -- It is a little confused that what's the difference between these two `createOperatorFunctionsForAggregates` . Could we remove the first one, and call `transformToAggregateFunctions` explicitly before `createOperatorFunctionsForAggregates` in DataSetAggregate ? > Add incremental group window aggregation for streaming Table API > ---------------------------------------------------------------- > > Key: FLINK-4937 > URL: https://issues.apache.org/jira/browse/FLINK-4937 > Project: Flink > Issue Type: Sub-task > Components: Table API & SQL > Affects Versions: 1.2.0 > Reporter: Fabian Hueske > Assignee: sunjincheng > > Group-window aggregates for streaming tables are currently not done in an incremental fashion. This means that the window collects all records and performs the aggregation when the window is closed instead of eagerly updating a partial aggregate for every added record. Since records are buffered, non-incremental aggregation requires more storage space than incremental aggregation. > The DataStream API which is used under the hood of the streaming Table API features [incremental aggregation|https://ci.apache.org/projects/flink/flink-docs-release-1.2/dev/windows.html#windowfunction-with-incremental-aggregation] using a {{ReduceFunction}}. > We should add support for incremental aggregation in group-windows. > This is a follow-up task of FLINK-4691. -- This message was sent by Atlassian JIRA (v6.3.4#6332)