GitHub user mathieulongtin opened a pull request:

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

    Support single argument version of sqlContext.getConf

    ## What changes were proposed in this pull request?
    
    In Python, sqlContext.getConf didn't allow getting the system default 
(getConf with one parameter).
    
    Now the following are supported:
    ```
    sqlContext.getConf(confName)  # System default if not locally set, this is 
new
    sqlContext.getConf(confName, myDefault)  # myDefault if not locally set, 
old behavior
    ```
    
    I also added doctests to this function. The original behavior does not 
change.
    
    ## How was this patch tested?
    
    Manually, but doctests were added.

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

    $ git pull https://github.com/mathieulongtin/spark pyfixgetconf3

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

    https://github.com/apache/spark/pull/12488.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 #12488
    
----
commit e80413210dc2d3ec9277dae0d694ac337f5c404a
Author: mathieu longtin <[email protected]>
Date:   2016-04-15T20:37:37Z

    Allow sqlContext.getConf to get system default

----


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