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

Remove unused parameter in WindowedStream.aggregate()

    XMLWordPrintableJSON

Details

    Description

      The aggregateResultType parameter in WindowedStream.aggregate() seems useless. Or what have I missed?

      If it is useless, I prefer to remove the parameter by adding a new API and deprecate the current one. We can't remove it directly as it is PublicEvolving.

      	@PublicEvolving
      	public <ACC, V, R> SingleOutputStreamOperator<R> aggregate(
      			AggregateFunction<T, ACC, V> aggregateFunction,
      			ProcessWindowFunction<V, R, K, W> windowFunction,
      			TypeInformation<ACC> accumulatorType,
      			TypeInformation<V> aggregateResultType,
      			TypeInformation<R> resultType) {
              }
      

      Attachments

        Issue Links

          Activity

            People

              hequn8128 Hequn Cheng
              hequn8128 Hequn Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: