GitHub user maasg opened a pull request:
https://github.com/apache/spark/pull/21194
[SPARK-24046][SS] Fix rate source when rowsPerSecond <= rampUpTime
## What changes were proposed in this pull request?
Fixes the ramp-up of the rate source for the case `rowsPerSecond <=
rampUpTime` which previously resulted in a flat ramp-up (0-value until the
clock reached `rampUpTime`.
Uses the distance quadratic function, meaning that ramp-up is a smooth
parabole that joins the linear constant rate at `rampUpTime`:

## How was this patch tested?
Improved and extended existing unit tests.
Validated the algorithm visually in a notebook for many different scenarios
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maasg/spark-1 SPARK-24046
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21194.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21194
----
commit e00fa289bc0349c184f0fbf395798511ec3138a6
Author: Gerard <gerard.maas@...>
Date: 2018-04-30T13:27:01Z
implement ramp-up using the acceleration function
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]