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

[GitHub] spark pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

GitHub user NarineK opened a pull request:

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

    [SPARK-12629] [SparkR] Fixes for DataFrame saveAsTable method

    I've tried to solve some of the issues mentioned in: https://issues.apache.org/jira/browse/SPARK-12629
    Please, let me know what do you think.
    Thanks!


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

    $ git pull https://github.com/NarineK/spark sparkrSavaAsRable

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

    https://github.com/apache/spark/pull/10580.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 #10580
    
----
commit 62872f1269b944f1fdebe6c48612278e21dc0049
Author: Narine Kokhlikyan <na...@gmail.com>
Date:   2016-01-04T21:19:47Z

    Some fixes for saveAsTable method

----


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168829419
  
    **[Test build #48692 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48692/consoleFull)** for PR 10580 at commit [`62872f1`](https://github.com/apache/spark/commit/62872f1269b944f1fdebe6c48612278e21dc0049).
     * This patch **fails R style tests**.
     * This patch **does not merge 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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173424439
  
    **[Test build #49840 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49840/consoleFull)** for PR 10580 at commit [`fdd38c5`](https://github.com/apache/spark/commit/fdd38c59158b5e56d72b0c4ee241592dda24c9ff).
     * This patch **fails R style tests**.
     * This patch **does not merge 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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48807309
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -521,7 +521,7 @@ setGeneric("sampleBy", function(x, col, fractions, seed) { standardGeneric("samp
     
     #' @rdname saveAsTable
     #' @export
    -setGeneric("saveAsTable", function(df, tableName, source, mode, ...) {
    --- End diff --
    
    `setGeneric("saveAsTable", function(df, tableName, source = NULL, mode = "error", ...) { `       is better? since it indicates more precise signature.


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173689733
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169754318
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48901154
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    --- End diff --
    
    @felixcheung , @sun-rui , @shivaram : that's a good idea, I can use  "getSqlContext()" method proposed in https://github.com/apache/spark/pull/9192/files#diff-b11442485f6b77bf47b58b4747321638R36
    
    I guess I need to wait that pull request to go in and then I can merge it with mine .


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169762764
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by NarineK <gi...@git.apache.org>.
Github user NarineK commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-173423927
  
    updated write.df and saveDF


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168825478
  
    **[Test build #48692 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48692/consoleFull)** for PR 10580 at commit [`62872f1`](https://github.com/apache/spark/commit/62872f1269b944f1fdebe6c48612278e21dc0049).


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-178755682
  
    @sun-rui @felixcheung I'm going to backport this to branch-1.6 so that the bug fix is available in 1.6.1. Let me know if you think there is a problem with it


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173694816
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by NarineK <gi...@git.apache.org>.
Github user NarineK commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-169768719
  
    I see. I've pushed all my changes and  left the piece of code which retrieves the context in case it is not passed by the argument. Later, you can replace it with the getContext utility method.



---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168849669
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48808612
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    -              source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
    -                                    "org.apache.spark.sql.parquet")
    +              if (exists(".sparkRSQLsc", envir = .sparkREnv)) {
    +                sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    +              } else if (exists(".sparkRHivesc", envir = .sparkREnv)) {
    +                sqlContext <- get(".sparkRHivesc", envir = .sparkREnv)
    +              } else {
    +                stop("sparkRHive or sparkRSQL context has to be specified")
    +              }
    +               source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
    +                                     "org.apache.spark.sql.parquet")
                 }
                 allModes <- c("append", "overwrite", "error", "ignore")
                 # nolint start
    --- End diff --
    
    Yes, let's merge with PR #10584 to unblock SparkR


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173424445
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/49840/
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168829423
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168849668
  
    **[Test build #48697 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48697/consoleFull)** for PR 10580 at commit [`d55cc13`](https://github.com/apache/spark/commit/d55cc13889ad3248b856d5fbd71747edb7bafcc5).
     * 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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by NarineK <gi...@git.apache.org>.
Github user NarineK commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-169423296
  
    Thanks for letting us know @shivaram 
    How about the #9192 ?
    I was thinking to reuse getSqlContext() utility method 


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168858274
  
    I think the direction we are heading is to have multiple sqlContext sessions and be able to specify which one to use, instead of automatically picking one?


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by NarineK <gi...@git.apache.org>.
Github user NarineK commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-173711547
  
    added ! Let me know what do you think!


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by sun-rui <gi...@git.apache.org>.
Github user sun-rui commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-169525000
  
    I think we may need more discussion on #9192, so let's merge this first.


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168829426
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48692/
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48807173
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    --- End diff --
    
    I think the same problem exists in write.df()? Could you extract the following logic into a util function, and update write.df() also to use it?


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by sun-rui <gi...@git.apache.org>.
Github user sun-rui commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-168874717
  
    @felixcheung, as we discussed before, I don't think it makes sense to support multiple sessions in SparkR now. Let's keep the current way until there is need to support it.


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169754316
  
    **[Test build #48951 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48951/consoleFull)** for PR 10580 at commit [`7de1894`](https://github.com/apache/spark/commit/7de1894801bc8f87b468e5651d2e69486d3195f3).
     * 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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48901251
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -521,7 +521,7 @@ setGeneric("sampleBy", function(x, col, fractions, seed) { standardGeneric("samp
     
     #' @rdname saveAsTable
     #' @export
    -setGeneric("saveAsTable", function(df, tableName, source, mode, ...) {
    --- End diff --
    
    yes, that works! thanks for the suggestion!


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168849671
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48697/
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173423962
  
    **[Test build #49840 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49840/consoleFull)** for PR 10580 at commit [`fdd38c5`](https://github.com/apache/spark/commit/fdd38c59158b5e56d72b0c4ee241592dda24c9ff).


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173690120
  
    **[Test build #49884 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49884/consoleFull)** for PR 10580 at commit [`3c24314`](https://github.com/apache/spark/commit/3c2431402b0b859bbc08487012528fd8e3f4e40d).


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48808635
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    --- End diff --
    
    See #9192 :)



---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173694688
  
    **[Test build #49884 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/49884/consoleFull)** for PR 10580 at commit [`3c24314`](https://github.com/apache/spark/commit/3c2431402b0b859bbc08487012528fd8e3f4e40d).
     * 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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-168849283
  
    **[Test build #48697 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48697/consoleFull)** for PR 10580 at commit [`d55cc13`](https://github.com/apache/spark/commit/d55cc13889ad3248b856d5fbd71747edb7bafcc5).


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169754322
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48951/
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

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


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173424442
  
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48807818
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    -              source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
    -                                    "org.apache.spark.sql.parquet")
    +              if (exists(".sparkRSQLsc", envir = .sparkREnv)) {
    +                sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    +              } else if (exists(".sparkRHivesc", envir = .sparkREnv)) {
    +                sqlContext <- get(".sparkRHivesc", envir = .sparkREnv)
    +              } else {
    +                stop("sparkRHive or sparkRSQL context has to be specified")
    +              }
    +               source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
    +                                     "org.apache.spark.sql.parquet")
                 }
                 allModes <- c("append", "overwrite", "error", "ignore")
                 # nolint start
    --- End diff --
    
    this is done in https://github.com/apache/spark/pull/10584.


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173012187
  
    LGTM. Thanks @NarineK -- @sun-rui Do you have any more comments on this ?


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by sun-rui <gi...@git.apache.org>.
Github user sun-rui commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-173772179
  
    LGTM


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169248208
  
    @NarineK FYI #10584 has been merged. If you rebase / merge with master you should be able to see the changes.


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173032660
  
    looks fine to me


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48807562
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    -              source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
    -                                    "org.apache.spark.sql.parquet")
    +              if (exists(".sparkRSQLsc", envir = .sparkREnv)) {
    +                sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    +              } else if (exists(".sparkRHivesc", envir = .sparkREnv)) {
    +                sqlContext <- get(".sparkRHivesc", envir = .sparkREnv)
    +              } else {
    +                stop("sparkRHive or sparkRSQL context has to be specified")
    +              }
    +               source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
    +                                     "org.apache.spark.sql.parquet")
                 }
                 allModes <- c("append", "overwrite", "error", "ignore")
                 # nolint start
    --- End diff --
    
    Please use df.write.saveAsTable() instead of deprecated df.saveAsTable().


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173689735
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/49883/
    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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-174003522
  
    Merging this to master. 


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169753769
  
    **[Test build #48951 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48951/consoleFull)** for PR 10580 at commit [`7de1894`](https://github.com/apache/spark/commit/7de1894801bc8f87b468e5651d2e69486d3195f3).


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169758185
  
    **[Test build #48952 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48952/consoleFull)** for PR 10580 at commit [`faa4971`](https://github.com/apache/spark/commit/faa4971571b761ddc88ae7f819c61c8a65741441).


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

Posted by sun-rui <gi...@git.apache.org>.
Github user sun-rui commented on the pull request:

    https://github.com/apache/spark/pull/10580#issuecomment-173091268
  
    @NarineK, could you update the write.df() function as well?


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169762770
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48952/
    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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-169762617
  
    **[Test build #48952 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48952/consoleFull)** for PR 10580 at commit [`faa4971`](https://github.com/apache/spark/commit/faa4971571b761ddc88ae7f819c61c8a65741441).
     * 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 pull request: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#discussion_r48901574
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2005,13 +2005,18 @@ setMethod("saveDF",
     #' saveAsTable(df, "myfile")
     #' }
     setMethod("saveAsTable",
    -          signature(df = "DataFrame", tableName = "character", source = "character",
    -                    mode = "character"),
    +          signature(df = "DataFrame", tableName = "character"),
               function(df, tableName, source = NULL, mode="error", ...){
                 if (is.null(source)) {
    -              sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
    --- End diff --
    
    @felixcheung, it seems that you have it for saveAsTable too. After merge I can add my test cases  ... 


---
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: [SPARK-12629] [SparkR] Fixes for DataFrame sav...

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

    https://github.com/apache/spark/pull/10580#issuecomment-173694818
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/49884/
    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