You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by rxin <gi...@git.apache.org> on 2016/02/03 23:17:09 UTC

[GitHub] spark pull request: [SPARK-13166][SQL] Remove DataStreamReader/Wri...

GitHub user rxin opened a pull request:

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

    [SPARK-13166][SQL] Remove DataStreamReader/Writer

    They seem redundant and we can simply use DataFrameReader/Writer.
    
    The usage looks like:
    ```scala
    val df = sqlContext.read.stream("...")
    val handle = df.write.stream("...")
    handle.stop()
    ```


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

    $ git pull https://github.com/rxin/spark SPARK-13166

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

    https://github.com/apache/spark/pull/11062.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 #11062
    
----
commit 6a397dcb2428fe4bff29c9e052591bce8d49f805
Author: Reynold Xin <rx...@databricks.com>
Date:   2016-02-03T22:16:34Z

    [SPARK-13166][SQL] Remove DataStreamReader/Writer

----


---
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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#discussion_r51797850
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala ---
    @@ -184,6 +185,34 @@ final class DataFrameWriter private[sql](df: DataFrame) {
       }
     
       /**
    +   * Starts the execution of the streaming query, which will continually output results to the given
    +   * path as new data arrives.  The returned [[ContinuousQuery]] object can be used to interact with
    +   * the stream.
    +   *
    +   * @since 2.0.0
    +   */
    +  def stream(path: String): ContinuousQuery = {
    +    option("path", path).stream()
    +  }
    +
    +  /**
    +   * Starts the execution of the streaming query, which will continually output results to the given
    +   * path as new data arrives.  The returned [[ContinuousQuery]] object can be used to interact with
    --- End diff --
    
    extra space.


---
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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179507328
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50690/
    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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#discussion_r51797839
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala ---
    @@ -184,6 +185,34 @@ final class DataFrameWriter private[sql](df: DataFrame) {
       }
     
       /**
    +   * Starts the execution of the streaming query, which will continually output results to the given
    +   * path as new data arrives.  The returned [[ContinuousQuery]] object can be used to interact with
    --- End diff --
    
    extra space


---
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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179543214
  
    **[Test build #50693 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50693/consoleFull)** for PR 11062 at commit [`7528abb`](https://github.com/apache/spark/commit/7528abb9e101a82bbed65979ae327599a53ae621).
     * 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-13166][SQL] Remove DataStreamReader/Wri...

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

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


---
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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179544214
  
    LGTM, merging 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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179543714
  
    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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179509309
  
    **[Test build #50693 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50693/consoleFull)** for PR 11062 at commit [`7528abb`](https://github.com/apache/spark/commit/7528abb9e101a82bbed65979ae327599a53ae621).


---
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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179543719
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50693/
    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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#issuecomment-179507325
  
    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-13166][SQL] Remove DataStreamReader/Wri...

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

    https://github.com/apache/spark/pull/11062#discussion_r51798202
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala ---
    @@ -184,6 +185,34 @@ final class DataFrameWriter private[sql](df: DataFrame) {
       }
     
       /**
    +   * Starts the execution of the streaming query, which will continually output results to the given
    +   * path as new data arrives.  The returned [[ContinuousQuery]] object can be used to interact with
    +   * the stream.
    +   *
    +   * @since 2.0.0
    +   */
    +  def stream(path: String): ContinuousQuery = {
    +    option("path", path).stream()
    +  }
    +
    +  /**
    +   * Starts the execution of the streaming query, which will continually output results to the given
    +   * path as new data arrives.  The returned [[ContinuousQuery]] object can be used to interact with
    --- End diff --
    
    that's there from the old code... i will remove 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