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

Restrict users of accumulators not to return null in Accumulator#getLocalValue

    XMLWordPrintableJSON

Details

    Description

      This discussion raises a problem that, if a user returns a null value in Accumulator#getLocalValue, he will be notified that the failureCause should not be null when fetching the accumulator result, which seems to be really wired.

      The problem is that we're not explicitly restricting the users not to return null values in Accumulator#getLocalValue.

      aljoscha is it legal to return null values? If not, we should explicitly throw a related exception to the users instead of giving the users a somewhat unrelated exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            TsReaper Caizhi Weng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: