GitHub user davies opened a pull request:

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

    [WIP]  backport native window functions into 1.6

    ## What changes were proposed in this pull request?
    
    (Please fill in changes proposed in this fix)
    
    
    ## How was this patch tested?
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    


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

    $ git pull https://github.com/davies/spark window_1.6

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

    https://github.com/apache/spark/pull/11614.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 #11614
    
----
commit 982b72a656151f1678636119d515656c8198e3a0
Author: Herman van Hovell <[email protected]>
Date:   2015-12-17T23:16:35Z

    [SPARK-8641][SQL] Native Spark Window functions
    
    This PR removes Hive windows functions from Spark and replaces them with 
(native) Spark ones. The PR is on par with Hive in terms of features.
    
    This has the following advantages:
    * Better memory management.
    * The ability to use spark UDAFs in Window functions.
    
    cc rxin / yhuai
    
    Author: Herman van Hovell <[email protected]>
    
    Closes #9819 from hvanhovell/SPARK-8641-2.

commit 223e054a208a09fcab56931fa684a338ce7e5277
Author: Davies Liu <[email protected]>
Date:   2016-01-07T07:21:52Z

    [SPARK-12295] [SQL] external spilling for window functions
    
    This PR manage the memory used by window functions (buffered rows), also 
enable external spilling.
    
    After this PR, we can run window functions on a partition with hundreds of 
millions of rows with only 1G.
    
    Author: Davies Liu <[email protected]>
    
    Closes #10605 from davies/unsafe_window.
    
    Conflicts:
        
core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorter.java
        
core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java
        sql/core/src/main/scala/org/apache/spark/sql/execution/Window.scala

----


---
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