You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by felixcheung <gi...@git.apache.org> on 2016/06/24 06:28:11 UTC

[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

GitHub user felixcheung opened a pull request:

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

    [SPARK-16184][SPARKR] conf API for SparkSession

    ## What changes were proposed in this pull request?
    
    Add `conf` to get SparkSession Runtime Config
    
    
    ## How was this patch tested?
    
    unit tests, manual tests
    
    This is how it works in sparkR shell:
    ```
     SparkSession available as 'spark'.
    > conf()
    $hive.metastore.warehouse.dir
    [1] "file:/opt/spark-2.0.0-bin-hadoop2.6/R/spark-warehouse"
    
    $spark.app.id
    [1] "local-1466749575523"
    
    $spark.app.name
    [1] "SparkR"
    
    $spark.driver.host
    [1] "10.0.2.1"
    
    $spark.driver.port
    [1] "45629"
    
    $spark.executorEnv.LD_LIBRARY_PATH
    [1] "$LD_LIBRARY_PATH:/usr/lib/R/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/default-java/jre/lib/amd64/server"
    
    $spark.executor.id
    [1] "driver"
    
    $spark.home
    [1] "/opt/spark-2.0.0-bin-hadoop2.6"
    
    $spark.master
    [1] "local[*]"
    
    $spark.sql.catalogImplementation
    [1] "hive"
    
    $spark.submit.deployMode
    [1] "client"
    
    > conf("spark.master")
    $spark.master
    [1] "local[*]"
    
    ```

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

    $ git pull https://github.com/felixcheung/spark rconf

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

    https://github.com/apache/spark/pull/13885.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 #13885
    
----
commit 2079018ebaba4cc7378186092308a4d227f260c4
Author: Felix Cheung <fe...@hotmail.com>
Date:   2016-06-24T06:23:55Z

    Conf API in R

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61245 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61245/consoleFull)** for PR 13885 at commit [`385645b`](https://github.com/apache/spark/commit/385645b9db9eb9468f07ac39144ef0a88af4830f).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/61192/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/61245/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    LGTM. Thanks @felixcheung - Merging this into master and branch-2.0


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13885#discussion_r68491306
  
    --- Diff: R/pkg/R/SQLContext.R ---
    @@ -110,11 +110,46 @@ infer_type <- function(x) {
       }
     }
     
    -getDefaultSqlSource <- function() {
    +#' Get Runtime Config from the current active SparkSession
    +#'
    +#' Get Runtime Config from the current active SparkSession.
    +#' To change SparkSession Runtime Config, please see `sparkR.session()`.
    +#'
    +#' @param key (optional) The key of the config to get, if omitted, all config is returned
    +#' @param defaultValue (optional) The default value of the config to return if they config is not
    +#' set, if omitted, the call fails if the config key is not set
    +#' @return a list of config values with keys as their names
    +#' @rdname sparkR.conf
    +#' @name sparkR.conf
    +#' @export
    +#' @examples
    +#'\dontrun{
    +#' sparkR.session()
    +#' allConfigs <- sparkR.conf()
    +#' masterValue <- unlist(sparkR.conf("spark.master"))
    +#' namedConfig <- sparkR.conf("spark.executor.memory", "0g")
    +#' }
    +#' @note sparkR.conf since 2.0.0
    +sparkR.conf <- function(key, defaultValue) {
       sparkSession <- getSparkSession()
    -  conf <- callJMethod(sparkSession, "conf")
    -  source <- callJMethod(conf, "get", "spark.sql.sources.default", "org.apache.spark.sql.parquet")
    -  source
    +  if (missing(key)) {
    +    m <- callJStatic("org.apache.spark.sql.api.r.SQLUtils", "getSessionConf", sparkSession)
    +    as.list(m, all.names = TRUE, sorted = TRUE)
    +  } else {
    +    conf <- callJMethod(sparkSession, "conf")
    +    value <- if (missing(defaultValue)) {
    +      callJMethod(conf, "get", key) # throws if key not found
    --- End diff --
    
    instead of throwing a java exception, can we catch it and throw a `stop` from the SparkR code ? its slightly more user friendly 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Merged build finished. Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61156 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61156/consoleFull)** for PR 13885 at commit [`2079018`](https://github.com/apache/spark/commit/2079018ebaba4cc7378186092308a4d227f260c4).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61192 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61192/consoleFull)** for PR 13885 at commit [`e9be83d`](https://github.com/apache/spark/commit/e9be83db843fbb2c5d1867d5cde5b20995a4b910).
     * This patch **fails R style tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61245 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61245/consoleFull)** for PR 13885 at commit [`385645b`](https://github.com/apache/spark/commit/385645b9db9eb9468f07ac39144ef0a88af4830f).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    @shivaram 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61194 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61194/consoleFull)** for PR 13885 at commit [`bdd290c`](https://github.com/apache/spark/commit/bdd290c54ff094089a7d04e29c2ff65c43ac13e7).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/61156/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61192 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61192/consoleFull)** for PR 13885 at commit [`e9be83d`](https://github.com/apache/spark/commit/e9be83db843fbb2c5d1867d5cde5b20995a4b910).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61194 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61194/consoleFull)** for PR 13885 at commit [`bdd290c`](https://github.com/apache/spark/commit/bdd290c54ff094089a7d04e29c2ff65c43ac13e7).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13885#discussion_r68423467
  
    --- Diff: R/pkg/NAMESPACE ---
    @@ -10,6 +10,7 @@ export("sparkR.session")
     export("sparkR.init")
     export("sparkR.stop")
     export("sparkR.session.stop")
    +export("conf")
    --- End diff --
    
    can we call this sparkR.conf ? 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/61194/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13885#discussion_r68496462
  
    --- Diff: R/pkg/R/SQLContext.R ---
    @@ -110,11 +110,46 @@ infer_type <- function(x) {
       }
     }
     
    -getDefaultSqlSource <- function() {
    +#' Get Runtime Config from the current active SparkSession
    +#'
    +#' Get Runtime Config from the current active SparkSession.
    +#' To change SparkSession Runtime Config, please see `sparkR.session()`.
    +#'
    +#' @param key (optional) The key of the config to get, if omitted, all config is returned
    +#' @param defaultValue (optional) The default value of the config to return if they config is not
    +#' set, if omitted, the call fails if the config key is not set
    +#' @return a list of config values with keys as their names
    +#' @rdname sparkR.conf
    +#' @name sparkR.conf
    +#' @export
    +#' @examples
    +#'\dontrun{
    +#' sparkR.session()
    +#' allConfigs <- sparkR.conf()
    +#' masterValue <- unlist(sparkR.conf("spark.master"))
    +#' namedConfig <- sparkR.conf("spark.executor.memory", "0g")
    +#' }
    +#' @note sparkR.conf since 2.0.0
    +sparkR.conf <- function(key, defaultValue) {
       sparkSession <- getSparkSession()
    -  conf <- callJMethod(sparkSession, "conf")
    -  source <- callJMethod(conf, "get", "spark.sql.sources.default", "org.apache.spark.sql.parquet")
    -  source
    +  if (missing(key)) {
    +    m <- callJStatic("org.apache.spark.sql.api.r.SQLUtils", "getSessionConf", sparkSession)
    +    as.list(m, all.names = TRUE, sorted = TRUE)
    +  } else {
    +    conf <- callJMethod(sparkSession, "conf")
    +    value <- if (missing(defaultValue)) {
    +      callJMethod(conf, "get", key) # throws if key not found
    --- End diff --
    
    Done


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    **[Test build #61156 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/61156/consoleFull)** for PR 13885 at commit [`2079018`](https://github.com/apache/spark/commit/2079018ebaba4cc7378186092308a4d227f260c4).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    @shivaram this is ready, thanks!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13885#discussion_r68427464
  
    --- Diff: R/pkg/NAMESPACE ---
    @@ -10,6 +10,7 @@ export("sparkR.session")
     export("sparkR.init")
     export("sparkR.stop")
     export("sparkR.session.stop")
    +export("conf")
    --- End diff --
    
    sure - its dependency on sparkSession - i think it belongs to SQLContext.R, should it be `sparkR.session.conf` (because it is the session's RuntimeConfig) but it feels too long.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13885#discussion_r68427780
  
    --- Diff: R/pkg/NAMESPACE ---
    @@ -10,6 +10,7 @@ export("sparkR.session")
     export("sparkR.init")
     export("sparkR.stop")
     export("sparkR.session.stop")
    +export("conf")
    --- End diff --
    
    also this is readonly - `setter` is `spark.session()` - in line with SparkSession is builder syntax.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #13885: [SPARK-16184][SPARKR] conf API for SparkSession

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13885
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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