wangpeibin713 edited a comment on issue #7786: [FLINK-11706] Add the 
SumFunction to support KeyedStream.sum
URL: https://github.com/apache/flink/pull/7786#issuecomment-465985556
 
 
   After this transform function done, some function(maybe flatmap + keyBy + 
reduce ) should be called to combine the result value into Integer[].   It's 
not inconvenient for the developer. 
   
   so I want to introduce this feature. It's transparent to developer.
   
   > how about some code like below
   > 
   > ```
   > int index = 0
   > for (Integer v : value.f1) {
   >     out.collect(new Tuple2<>(String.format("%d_%d", value.f0, index++), 
v));
   > }
   > ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to