GitHub user brkyvz opened a pull request:

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

    [SPARK-14353] Dataset Time Window `window` API for R

    ## What changes were proposed in this pull request?
    
    The `window` function was added to Dataset with [this 
PR](https://github.com/apache/spark/pull/12008).
    This PR adds the R API for this function.
    
    With this PR, SQL, Java, and Scala will share the same APIs as in users can 
use:
     - `window(timeColumn, windowDuration)` 
     - `window(timeColumn, windowDuration, slideDuration)` 
     - `window(timeColumn, windowDuration, slideDuration, startTime)`
    
    In Python and R, users can access all APIs above, but in addition they can 
do
     - In R:
       `window(timeColumn, windowDuration, startTime=...)`
    
    that is, they can provide the startTime without providing the 
`slideDuration`. In this case, we will generate tumbling windows.
    
    ## How was this patch tested?
    
    Unit tests + manual tests

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

    $ git pull https://github.com/brkyvz/spark R-windows

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

    https://github.com/apache/spark/pull/12141.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 #12141
    
----
commit 9c63aebcef3603303f70ef5346475ac1dce86116
Author: Burak Yavuz <[email protected]>
Date:   2016-04-04T02:39:41Z

    R support for time windowing

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to