Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Abandoned
-
None
-
None
-
None
Description
Currently UDAGG users can not access state, it's necessary to provide users with a convenient and efficient way to access the state within the UDAGG.
This is the design doc: https://docs.google.com/document/d/1g-wHOuFj5pMaYMJg90kVIO2IHbiQiO26nWscLIOn50c/edit#
Proposed Changes:
1. Implementation of DataView to support state access for UDAGG
2. Support getAccumulatorType when use DataView
3. Refactor build-in agg(MaxWithRetractAccumulator and MinWithRetractAccumulator) using the DataView
4. Support DataView in Java and Scala Tuples and Case classes or as the accumulator of AggregateFunction itself.
Attachments
Issue Links
- links to