Hi David, Although the original intention of introducing `MapBundleFunction`, `MapBundleOperator`, and `CountBundleTrigger` is to do MiniBatch optimization for Flink SQL, those classes could also be used in DataStream Job. I think it's ok to do local-aggregation optimization based on those classed in you case.
Best, JING ZHANG David Anderson <dander...@apache.org> 于2021年8月19日周四 下午10:15写道: > Most of the table/bundle related classes such as > MapBundleFunction, MapBundleOperator, and CountBundleTrigger aren't marked > as either @Internal or @Public. What was the intention? > > I ask because I'm starting to see some interest in using them for > implementing pre-aggregation via the DataStream API, and I'm not convinced > this is a good idea. E.g., see > > https://stackoverflow.com/questions/68811184/pre-shuffle-aggregation-in-flink > . > > David >