Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-5984

Add resetAccumulator method for AggregateFunction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • Table SQL / API
    • None

    Description

      Right now we have to create a new accumulator object if we just want to reset it. We should allow passing the old one as a reuse object to AggregateFunction#createAccumulator. The aggregate function then can decide if it wants to create a new object or reset the old one.

      Attachments

        Issue Links

          Activity

            People

              ShaoxuanWang Shaoxuan Wang
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: