GitHub user kunalkhamar opened a pull request:

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

    Fork SparkSession with option to inherit a copy of the SessionState.

    ## What changes were proposed in this pull request?
    
    Forking a newSession() from SparkSession currently makes a new SparkSession 
that does not retain SessionState (i.e. temporary tables, SQL config, 
registered functions etc.) This change adds a flag 
newSession(inheritSessionState: Boolean) which can create a new SparkSession 
with a copy of the parent's SessionState.
    
    ## How was this patch tested?
    
    Unit tests

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

    $ git pull https://github.com/kunalkhamar/spark fork-sparksession

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

    https://github.com/apache/spark/pull/16826.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 #16826
    
----
commit 18ce1b82403cfb1e2b4fcac2dd5875f289d61ed3
Author: Kunal Khamar <kkha...@outlook.com>
Date:   2017-02-03T00:31:05Z

    Add capability to inherit SessionState (SQL conf, temp tables, registered 
functions) when forking a new SparkSession.

commit 9beb78d82d7777bc17aed047d818fdd4fca1b0d6
Author: Kunal Khamar <kkha...@outlook.com>
Date:   2017-02-06T22:55:56Z

    Add tests for forking new session with inherit config enabled. Update 
overloaded functions for Java bytecode compatibility.

commit a343d8af9c577158042e4af9f8832f46aeecd509
Author: Kunal Khamar <kkha...@outlook.com>
Date:   2017-02-06T23:24:02Z

    Fix constructor default args for bytecode compatibility.

----


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