[jira] [Created] (FLINK-5914) remove aggregateResultType from streaming.api.datastream.aggregate

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-5914) remove aggregateResultType from streaming.api.datastream.aggregate

Shang Yuanchun (Jira)
Shaoxuan Wang created FLINK-5914:
------------------------------------

             Summary: remove aggregateResultType from streaming.api.datastream.aggregate
                 Key: FLINK-5914
                 URL: https://issues.apache.org/jira/browse/FLINK-5914
             Project: Flink
          Issue Type: Improvement
          Components: Streaming
            Reporter: Shaoxuan Wang
            Assignee: Shaoxuan Wang


aggregateResultType does not seem necessary for streaming.api.datastream.aggregate. We will anyway not serialize the aggregateResult between aggregate and window function. Aggregate function itself provides a function to getResult(), window function here should just emit the same results as aggregate output. So aggregateResultType should be same as resultType. I think we can safely remove aggregateResultType, thereby user will not have to provide two same types for the streaming.api.datastream.aggregate.  

 [~StephanEwen], what do you think?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)