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

[GitHub] spark pull request #13705: [SPARK-15472][SQL] Add support for writing in `cs...

GitHub user lw-lin opened a pull request:

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

    [SPARK-15472][SQL] Add support for writing in `csv` format in Structured Streaming

    ## What changes were proposed in this pull request?
    
    This patch adds support for writing in `csv` format in Structured Streaming:
    
    **1. At a high level, this patch forms the following class hierarchy**:
    ```
                                <OutputWriter>
                                      ↑
                             CSVOutputWriterBase
                                 ↗          ↖
    (anonymous batch) CSVOutputWriter    (anonymous streaming) CSVOutputWriter
                                               [write data without using
                                                  an OutputCommitter]
    ```
    ```
                             <OutputWriterFactory>
                                 ↗          ↖
           BatchCSVOutputWriterFactory   StreamingCSVOutputWriterFactory
    ```
    The streaming CSVOutputWriter would write data **without** using an `OutputCommitter`, which was the same approach taken by [SPARK-14716](https://github.com/apache/spark/pull/12409).
    
    **2. To support compression, this patch attaches an extension to the path assigned by `FileStreamSink`**.
    
    E.g., if we write out using the `gzip` compression and `FileStreamSink` assigns path `${uuid}` to the output writer, then in the end the file written out will be `${uuid}.csv.gz`. This way when we read the file back, we should be able to interpret it correctly as `gzip` compressed.
    
    This is slightly different from [SPARK-14716](https://github.com/apache/spark/pull/12409).
    
    ## How was this patch tested?
    
    `FileStreamSinkSuite` is expanded to cover `csv` format:
    
    ```scala
    test("csv - unpartitioned data - codecs: none/gzip")
    test("csv - partitioned data - codecs: none/gzip")
    test("csv - unpartitioned writing and batch reading - codecs: none/gzip")
    test("csv - partitioned writing and batch reading - codecs: none/gzip")
    ```

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

    $ git pull https://github.com/lw-lin/spark csv-for-ss

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

    https://github.com/apache/spark/pull/13705.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 #13705
    
----
commit 9869f9885e4fdc7364cd46ab05b1f332921ff8d7
Author: Liwei Lin <lw...@gmail.com>
Date:   2016-06-16T05:38:13Z

    Add support for writing in `csv` format

----


---
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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    closing this in favor of SPARK-17924


---
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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    **[Test build #65635 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/65635/consoleFull)** for PR 13705 at commit [`9869f98`](https://github.com/apache/spark/commit/9869f9885e4fdc7364cd46ab05b1f332921ff8d7).


---
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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    **[Test build #65635 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/65635/consoleFull)** for PR 13705 at commit [`9869f98`](https://github.com/apache/spark/commit/9869f9885e4fdc7364cd46ab05b1f332921ff8d7).
     * This patch passes all 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 issue #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    I personally feel that it would be great if we can also support writing in `csv`, `json`, `txt` formats in Structured Streaming for the 2.0 release (I'd like to submit patches for `json`, `txt` very soon if possible).
    
    @marmbrus @tdas @zsxwing please let me know what do you think and if you have any ideas to improve this patch, thanks a lot!


---
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 #13705: [SPARK-15472][SQL] Add support for writing in `cs...

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

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


---
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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60641/
    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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65635/
    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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    **[Test build #60641 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60641/consoleFull)** for PR 13705 at commit [`9869f98`](https://github.com/apache/spark/commit/9869f9885e4fdc7364cd46ab05b1f332921ff8d7).


---
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 #13705: [SPARK-15472][SQL] Add support for writing in `csv` form...

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

    https://github.com/apache/spark/pull/13705
  
    **[Test build #60641 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60641/consoleFull)** for PR 13705 at commit [`9869f98`](https://github.com/apache/spark/commit/9869f9885e4fdc7364cd46ab05b1f332921ff8d7).
     * 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