code: func (sf *sumFunction) GetStreamResult() (d types.Datum) {
  	if sf.streamCtx == nil {
  		return
  	}
  	d = sf.streamCtx.Value
  	sf.streamCtx = nil
  	return
  }
docs: // GetStreamResult implements AggregationFunction interface.