GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/18199

    [SPARK-20979][SS]Add RateSource to generate values for tests and benchmark

    ## What changes were proposed in this pull request?
    
    This PR adds RateSource for Structured Streaming so that the user can use 
it to generate data for tests and benchmark easily.
    
    This source generates increment long values with timestamps. Each generated 
row has two columns: a timestamp column for the generated time and an auto 
increment long column starting with 0L.
    
    It supports the following options:
    - `tuplesPerSecond` (default: 1): How many tuples should be generated per 
second.
    - `rampUpTimeSeconds` (default: 0): How many seconds to ramp up before the 
generating speed becomes `tuplesPerSecond`.
    - `numPartitions` (default: Spark's default parallelism): The partition 
number for the generated tuples.
    
    The idea came from @marmbrus and he did the initial work.
    
    ## How was this patch tested?
    
    The added tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark rate

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18199.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 #18199
    
----
commit 554eafbe68277cf1248ed97da4006df433cd04ba
Author: Michael Armbrust <mich...@databricks.com>
Date:   2017-05-22T22:33:10Z

    add time source

commit 5b45b1bfcc35ea5b4fa836b983b4737ed50b4abd
Author: Shixiong Zhu <shixi...@databricks.com>
Date:   2017-06-05T05:20:20Z

    polish and tests

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to