Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.19.0, 1.18.1
Description
The documentation provides an example of using `emitUpdateWithRetract`. However, the example is misleading as it incorrectly suggests that the accumulator can be updated within the `emitUpdateWithRetract method`. In reality, the order of invocation is to first call `getAccumulator` and then `emitUpdateWithRetract`, which means that updating the accumulator within `emitUpdateWithRetract` will not take effect. Please see GroupTableAggFunction#L141 ~ GroupTableAggFunction#L146 for more details.
Attachments
Attachments
Issue Links
- Discovered while testing
-
FLINK-31788 Add back Support emitValueWithRetract for TableAggregateFunction
- Closed
- links to