[ https://issues.apache.org/jira/browse/FLINK-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15683420#comment-15683420 ]
ASF GitHub Bot commented on FLINK-4832: --------------------------------------- GitHub user ex00 opened a pull request: https://github.com/apache/flink/pull/2840 [FLINK-4832] Count/Sum 0 elements Hello. Currently, if `AggregateDataSet` is empty then we unable to count or sum up 0 elements. These changes allows to get correct result of aggregate function through dummy row union with the `AggregateDataSet`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ex00/flink FLINK-4832 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/2840.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 #2840 ---- commit 62f5fd6a0f6f808126d079353b1f1d9976ccac35 Author: Anton Mushin <anton_mus...@epam.com> Date: 2016-11-21T11:49:41Z [FLINK-4832] Count/Sum 0 elements aggregateDataSet union with dataSet is contains dummy records for correct to calculate aggregate functions if source aggregateDataSet is empty ---- > Count/Sum 0 elements > -------------------- > > Key: FLINK-4832 > URL: https://issues.apache.org/jira/browse/FLINK-4832 > Project: Flink > Issue Type: Improvement > Components: Table API & SQL > Reporter: Timo Walther > Assignee: Anton Mushin > > Currently, the Table API is unable to count or sum up 0 elements. We should > improve DataSet aggregations for this. Maybe by union the original DataSet > with a dummy record or by using a MapPartition function. Coming up with a > good design for this is also part of this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)