You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by tejasapatil <gi...@git.apache.org> on 2016/05/13 00:08:08 UTC

[GitHub] spark pull request: [TRIVIAL][Doc] SparkSession class doc example ...

GitHub user tejasapatil opened a pull request:

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

    [TRIVIAL][Doc] SparkSession class doc example correction

    ## What changes were proposed in this pull request?
    
    Was trying out `SparkSession` for the first time and the given class doc (when copied as is) did not work over Spark shell:
    
    ```
    scala> import org.apache.spark.sql._
    import org.apache.spark.sql._
    
    scala> SparkSession.builder().master("local").appName("Word Count").getOrCreate()
    <console>:27: error: org.apache.spark.sql.SparkSession.Builder does not take parameters
           SparkSession.builder().master("local").appName("Word Count").getOrCreate()
    ```
    
    PS: I am using latest master
    
    ## How was this patch tested?
    
    ```
    scala> SparkSession.builder.master("local").appName("Word Count").getOrCreate()
    res0: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession@c3719e5
    ```

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

    $ git pull https://github.com/tejasapatil/spark doc_correction

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

    https://github.com/apache/spark/pull/13086.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 #13086
    
----
commit 5678bb91d006e58a9ac163330bc72058d3d3cce5
Author: Tejas Patil <te...@fb.com>
Date:   2016-05-13T00:02:44Z

    SparkSession class doc correction

----


---
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: [TRIVIAL] Add () to SparkSession's builder fun...

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

    https://github.com/apache/spark/pull/13086#issuecomment-219100759
  
    **[Test build #58579 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58579/consoleFull)** for PR 13086 at commit [`7000168`](https://github.com/apache/spark/commit/70001680da48df956e2a69a70b7ac14f109e0676).
     * 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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-219080926
  
    @rxin : Thanks for review. I have made the suggested change.
    
    ```
    scala> import org.apache.spark.sql._
    import org.apache.spark.sql._
    
    scala> SparkSession.builder().master("local").appName("Word Count").getOrCreate()
    res0: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession@65c17e38
    
    scala> SparkSession.builder.master("local").appName("Word Count").getOrCreate()
    res1: org.apache.spark.sql.SparkSession = org.apache.spark.sql.SparkSession@65c17e38
    ```


---
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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-219081043
  
    **[Test build #58579 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58579/consoleFull)** for PR 13086 at commit [`7000168`](https://github.com/apache/spark/commit/70001680da48df956e2a69a70b7ac14f109e0676).


---
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: [TRIVIAL] Add () to SparkSession's builder fun...

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

    https://github.com/apache/spark/pull/13086#issuecomment-219100997
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/58579/
    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: [TRIVIAL] Add () to SparkSession's builder fun...

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

    https://github.com/apache/spark/pull/13086#issuecomment-219100995
  
    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: [TRIVIAL] Add () to SparkSession's builder fun...

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

    https://github.com/apache/spark/pull/13086#issuecomment-219191756
  
    Merging in master/2.0. 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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-218930724
  
    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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-218920811
  
    **[Test build #58526 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58526/consoleFull)** for PR 13086 at commit [`5678bb9`](https://github.com/apache/spark/commit/5678bb91d006e58a9ac163330bc72058d3d3cce5).


---
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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-218930610
  
    **[Test build #58526 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58526/consoleFull)** for PR 13086 at commit [`5678bb9`](https://github.com/apache/spark/commit/5678bb91d006e58a9ac163330bc72058d3d3cce5).
     * 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: [TRIVIAL] Add () to SparkSession's builder fun...

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

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


---
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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-218950905
  
    Maybe we should add () to the builder function instead? In that case this code will work in Java too.



---
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: [TRIVIAL][Doc] SparkSession class doc example ...

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

    https://github.com/apache/spark/pull/13086#issuecomment-218922187
  
    (Just to make sure, it seems it is only single one across Spark codes)
    
    ```bash
    grep -r "SparkSession.builder()" . | grep ".scala"
    ./sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala: *   SparkSession.builder()
    ```


---
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: [TRIVIAL][Doc] SparkSession class doc example ...

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

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