You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by fjh100456 <gi...@git.apache.org> on 2017/12/25 07:43:15 UTC

[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

GitHub user fjh100456 opened a pull request:

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

    [SPARK-21786][SQL] When acquiring 'compressionCodecClassName' in 'ParquetOptions', `parquet.compression` needs to be considered.

    [SPARK-21786][SQL] When acquiring 'compressionCodecClassName' in 'ParquetOptions', `parquet.compression` needs to be considered.
    
    ## What changes were proposed in this pull request?
    1.Increased acquiring 'compressionCodecClassName' from `parquet.compression`,and the precedence order is `compression`,`parquet.compression`,`spark.sql.parquet.compression.codec`, just like what we do in `OrcOptions`.
    
    2.Change `spark.sql.parquet.compression.codec` to support "none".Actually in `ParquetOptions`,we do support "none" as equivalent to "uncompressed", but it does not allowed to configured to "none".
    
    3.Change `compressionCode` to `compressionCodecClassName`.
    
    ## How was this patch tested?
    Add test.


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

    $ git pull https://github.com/fjh100456/spark ParquetOptionIssue

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

    https://github.com/apache/spark/pull/20076.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 #20076
    
----
commit 9bbfe6ef4b5a418373c2250ad676233fb05df7f7
Author: fjh100456 <fu...@...>
Date:   2017-12-25T02:29:53Z

    [SPARK-21786][SQL] When acquiring 'compressionCodecClassName' in 'ParquetOptions', `parquet.compression` needs to be considered.
    
    ## What changes were proposed in this pull request?
    1.Increased acquiring 'compressionCodecClassName' from `parquet.compression`,and the order is `compression`,`parquet.compression`,`spark.sql.parquet.compression.codec`, just like what we do in `OrcOptions`.
    2.Change `spark.sql.parquet.compression.codec` to support "none".Actually in `ParquetOptions`,we do support "none" as equivalent to "uncompressed", but it does not allowed to configured to "none".
    
    ## How was this patch tested?
    Manual test.

commit 48cf108ed5c3298eb860d9735b439ac89d65765e
Author: fjh100456 <fu...@...>
Date:   2017-12-25T02:30:24Z

    [SPARK-21786][SQL] When acquiring 'compressionCodecClassName' in 'ParquetOptions', `parquet.compression` needs to be considered.
    
    ## What changes were proposed in this pull request?
    1.Increased acquiring 'compressionCodecClassName' from `parquet.compression`,and the order is `compression`,`parquet.compression`,`spark.sql.parquet.compression.codec`, just like what we do in `OrcOptions`.
    2.Change `spark.sql.parquet.compression.codec` to support "none".Actually in `ParquetOptions`,we do support "none" as equivalent to "uncompressed", but it does not allowed to configured to "none".
    
    ## How was this patch tested?
    Manual test.

commit 5dbd3edf9e086433d3d3fe9c0ead887d799c61d3
Author: fjh100456 <fu...@...>
Date:   2017-12-25T02:34:29Z

    spark.sql.parquet.compression.codec[SPARK-21786][SQL] When acquiring 'compressionCodecClassName' in 'ParquetOptions', `parquet.compression` needs to be considered.
    
    ## What changes were proposed in this pull request?
    1.Increased acquiring 'compressionCodecClassName' from `parquet.compression`,and the order is `compression`,`parquet.compression`,`spark.sql.parquet.compression.codec`, just like what we do in `OrcOptions`.
    2.Change `spark.sql.parquet.compression.codec` to support "none".Actually in `ParquetOptions`,we do support "none" as equivalent to "uncompressed", but it does not allowed to configured to "none".
    
    ## How was this patch tested?
    Manual test.

commit 5124f1b560e942c0dc23af31336317a4b995dd8f
Author: fjh100456 <fu...@...>
Date:   2017-12-25T07:06:26Z

    spark.sql.parquet.compression.codec[SPARK-21786][SQL] When acquiring 'compressionCodecClassName' in 'ParquetOptions', `parquet.compression` needs to be considered.
    
    ## What changes were proposed in this pull request?
    1.Increased acquiring 'compressionCodecClassName' from `parquet.compression`,and the order is `compression`,`parquet.compression`,`spark.sql.parquet.compression.codec`, just like what we do in `OrcOptions`.
    2.Change `spark.sql.parquet.compression.codec` to support "none".Actually in `ParquetOptions`,we do support "none" as equivalent to "uncompressed", but it does not allowed to configured to "none".
    3.Change `compressionCode` to `compressionCodecClassName`.
    
    ## How was this patch tested?
    Manual test.

----


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85372 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85372/testReport)** for PR 20076 at commit [`5124f1b`](https://github.com/apache/spark/commit/5124f1b560e942c0dc23af31336317a4b995dd8f).
     * This patch **fails Scala style tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85380 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85380/testReport)** for PR 20076 at commit [`10e5462`](https://github.com/apache/spark/commit/10e546228e0b147ad26a7e23bae89a4d0a56c2c5).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `class ParquetOptions(`


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158632847
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    @gatorsmile @HyukjinKwon 
    In `TextOptions` ,`JSONOptions` and `CSVOptions`, it's  "Option[String]", but in `OrcOptions` and `ParquetOptions`, it's a "String".
    Just change `compressionCodecClassName` in `OrcOptions` and `ParquetOptions` to `compressionCodecName` is ok ?


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85379 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85379/testReport)** for PR 20076 at commit [`3cf0c04`](https://github.com/apache/spark/commit/3cf0c049961f76135653629d562eb01bf37f9457).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85395 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85395/testReport)** for PR 20076 at commit [`9229e6f`](https://github.com/apache/spark/commit/9229e6f1fa8f9fe58d279c6ab14cb1d20068a277).
     * This patch **fails due to an unknown error code, -9**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    cc @gatorsmile 
    No orc configuration found in "sql-programming-guide.md", so I did not add the precedence description to `spark.sql.orc.compression.codec `.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85378 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85378/testReport)** for PR 20076 at commit [`0c0f55d`](https://github.com/apache/spark/commit/0c0f55d31547d8882f013b5be9d0a84fd7da808f).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    @gatorsmile 
    I test it manually and found that table-level compression property coming from sqls like below still can not take effect, enven though passing table properties to a `hadoopConf`(just like what I do in #19218 ). Because it can not be found in properties of  `tableInfo`. I am not familiar with the SQL parsing, where is the attribute information stored when parsing SQL?
    ```CREATE table A using Parquet tblproperties (' parquet.compression ' = ' gzip ') ...```



---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85741 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85741/testReport)** for PR 20076 at commit [`1a8c654`](https://github.com/apache/spark/commit/1a8c654805656d3e143c2e63355c7b6365dac471).


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85381 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85381/testReport)** for PR 20076 at commit [`2ab2d29`](https://github.com/apache/spark/commit/2ab2d293a0548b66070e840372e589eb2949a0ff).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85394 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85394/testReport)** for PR 20076 at commit [`e510b48`](https://github.com/apache/spark/commit/e510b486ab1cea2f2f4f855747c86cd8af73728c).
     * This patch **fails Scala style tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `class CompressionCodecPrecedenceSuite extends SQLTestUtils with SharedSQLContext `


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    LGTM
    
    Thanks! Merged to master/2.3


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Does it mean what we do in the test case of another pr #19218 ? @gatorsmile


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85379 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85379/testReport)** for PR 20076 at commit [`3cf0c04`](https://github.com/apache/spark/commit/3cf0c049961f76135653629d562eb01bf37f9457).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85372 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85372/testReport)** for PR 20076 at commit [`5124f1b`](https://github.com/apache/spark/commit/5124f1b560e942c0dc23af31336317a4b995dd8f).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85716 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85716/testReport)** for PR 20076 at commit [`b5cd809`](https://github.com/apache/spark/commit/b5cd809c680d089d4fa8da9bd43cd64ed1a3b138).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85395 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85395/testReport)** for PR 20076 at commit [`9229e6f`](https://github.com/apache/spark/commit/9229e6f1fa8f9fe58d279c6ab14cb1d20068a277).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    ok to test


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85377 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85377/testReport)** for PR 20076 at commit [`05e52b6`](https://github.com/apache/spark/commit/05e52b6a5b63febe881569993ef3b8b2508d7aad).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `class ParquetOptions(`


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Well, I'll revert back the renaming. Any comments? @gatorsmile 



---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159142760
  
    --- Diff: docs/sql-programming-guide.md ---
    @@ -953,8 +953,10 @@ Configuration of Parquet can be done using the `setConf` method on `SparkSession
       <td><code>spark.sql.parquet.compression.codec</code></td>
       <td>snappy</td>
       <td>
    -    Sets the compression codec use when writing Parquet files. Acceptable values include:
    -    uncompressed, snappy, gzip, lzo.
    +    Sets the compression codec use when writing Parquet files. If other compression codec
    --- End diff --
    
    s/use when/used when


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85595 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85595/testReport)** for PR 20076 at commit [`d60dcd1`](https://github.com/apache/spark/commit/d60dcd121a64e460d0c2337afafdb8db40b4f862).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `class ParquetCompressionCodecPrecedenceSuite extends ParquetTest with SharedSQLContext `


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Retest this please


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85381 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85381/testReport)** for PR 20076 at commit [`2ab2d29`](https://github.com/apache/spark/commit/2ab2d293a0548b66070e840372e589eb2949a0ff).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85378 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85378/testReport)** for PR 20076 at commit [`0c0f55d`](https://github.com/apache/spark/commit/0c0f55d31547d8882f013b5be9d0a84fd7da808f).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159136922
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/CompressionCodecPrecedenceSuite.scala ---
    @@ -0,0 +1,60 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql
    --- End diff --
    
    Should we move this to `org.apache.spark.sql.execution.datasources.parquet`?


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85388 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85388/testReport)** for PR 20076 at commit [`2ab2d29`](https://github.com/apache/spark/commit/2ab2d293a0548b66070e840372e589eb2949a0ff).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Could you update the PR description with the following words? 
    
    > Since Hive 1.1, Hive allows users to set parquet compression codec via table-level properties `parquet.compression`. See the JIRA: https://issues.apache.org/jira/browse/HIVE-7858 . We do support `orc.compression` for ORC. Thus, for external users, it is more straightforward to support both. See the stackflow question: https://stackoverflow.com/questions/36941122/spark-sql-ignores-parquet-compression-propertie-specified-in-tblproperties
    > In Spark side, our table-level compression conf `compression` was added by https://github.com/apache/spark/pull/11464 since Spark 2.0. 
    > We need to support both table-level conf. Users might also use session-level conf spark.sql.parquet.compression.codec. The priority rule will be like
    > If other compression codec configuration was found through hive or parquet, the precedence would be `compression`, `parquet.compression`, `spark.sql.parquet.compression.codec`. Acceptable values include: none, uncompressed, snappy, gzip, lzo.
    > The rule for Parquet is consistent with the ORC after the change.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158630439
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    `compressionCodecName ` is also fine to me.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158627363
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    Can we change `compressionCodecClassName` to `compressionCodec` instead?


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159885686
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetCompressionCodecPrecedenceSuite.scala ---
    @@ -0,0 +1,117 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.execution.datasources.parquet
    +
    +import java.io.File
    +
    +import scala.collection.JavaConverters._
    +
    +import org.apache.hadoop.fs.Path
    +import org.apache.parquet.hadoop.ParquetOutputFormat
    +
    +import org.apache.spark.sql.internal.SQLConf
    +import org.apache.spark.sql.test.SharedSQLContext
    +
    +class ParquetCompressionCodecPrecedenceSuite extends ParquetTest with SharedSQLContext {
    +  test("Test `spark.sql.parquet.compression.codec` config") {
    +    Seq("NONE", "UNCOMPRESSED", "SNAPPY", "GZIP", "LZO").foreach { c =>
    +      withSQLConf(SQLConf.PARQUET_COMPRESSION.key -> c) {
    +        val expected = if (c == "NONE") "UNCOMPRESSED" else c
    +        val option = new ParquetOptions(Map.empty[String, String], spark.sessionState.conf)
    +        assert(option.compressionCodecClassName == expected)
    +      }
    +    }
    +  }
    +
    +  test("[SPARK-21786] Test Acquiring 'compressionCodecClassName' for parquet in right order.") {
    +    // When "compression" is configured, it should be the first choice.
    +    withSQLConf(SQLConf.PARQUET_COMPRESSION.key -> "snappy") {
    +      val props = Map("compression" -> "uncompressed", ParquetOutputFormat.COMPRESSION -> "gzip")
    +      val option = new ParquetOptions(props, spark.sessionState.conf)
    +      assert(option.compressionCodecClassName == "UNCOMPRESSED")
    +    }
    +
    +    // When "compression" is not configured, "parquet.compression" should be the preferred choice.
    +    withSQLConf(SQLConf.PARQUET_COMPRESSION.key -> "snappy") {
    +      val props = Map(ParquetOutputFormat.COMPRESSION -> "gzip")
    +      val option = new ParquetOptions(props, spark.sessionState.conf)
    +      assert(option.compressionCodecClassName == "GZIP")
    +    }
    +
    +    // When both "compression" and "parquet.compression" are not configured,
    +    // spark.sql.parquet.compression.codec should be the right choice.
    +    withSQLConf(SQLConf.PARQUET_COMPRESSION.key -> "snappy") {
    +      val props = Map.empty[String, String]
    +      val option = new ParquetOptions(props, spark.sessionState.conf)
    +      assert(option.compressionCodecClassName == "SNAPPY")
    +    }
    +  }
    +
    +  private def getTableCompressionCodec(path: String): Seq[String] = {
    +    val hadoopConf = spark.sessionState.newHadoopConf()
    +    val codecs = for {
    +      footer <- readAllFootersWithoutSummaryFiles(new Path(path), hadoopConf)
    +      block <- footer.getParquetMetadata.getBlocks.asScala
    +      column <- block.getColumns.asScala
    +    } yield column.getCodec.name()
    +    codecs.distinct
    +  }
    +
    +  private def createTableWithCompression(
    +      tableName: String,
    +      isPartitioned: Boolean,
    +      compressionCodec: String,
    +      rootDir: File): Unit = {
    +    val options =
    +      s"""OPTIONS('path'='${rootDir.toURI.toString.stripSuffix("/")}/$tableName',
    +         |'parquet.compression'='$compressionCodec')""".stripMargin
    +    val partitionCreate = if (isPartitioned) "PARTITIONED BY (p)" else ""
    +    sql(s"""CREATE TABLE $tableName USING Parquet $options $partitionCreate
    +    |as select 1 as col1, 2 as p""".stripMargin)
    --- End diff --
    
    ```
        val options =
          s"""
            |OPTIONS('path'='${rootDir.toURI.toString.stripSuffix("/")}/$tableName',
            |'parquet.compression'='$compressionCodec')
           """.stripMargin
        val partitionCreate = if (isPartitioned) "PARTITIONED BY (p)" else ""
        sql(
          s"""
            |CREATE TABLE $tableName USING Parquet $options $partitionCreate
            |AS SELECT 1 AS col1, 2 AS p
          """.stripMargin)
    ```


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158663721
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/CompressionCodecSuite.scala ---
    @@ -0,0 +1,61 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.hive
    +
    +import org.apache.parquet.hadoop.ParquetOutputFormat
    +
    +import org.apache.spark.sql.execution.datasources.parquet.ParquetOptions
    +import org.apache.spark.sql.hive.test.TestHiveSingleton
    +import org.apache.spark.sql.internal.SQLConf
    +import org.apache.spark.sql.test.SQLTestUtils
    +
    +class CompressionCodecSuite extends TestHiveSingleton with SQLTestUtils {
    --- End diff --
    
    This suite does not need `TestHiveSingleton `. 


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85400 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85400/testReport)** for PR 20076 at commit [`9229e6f`](https://github.com/apache/spark/commit/9229e6f1fa8f9fe58d279c6ab14cb1d20068a277).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159218648
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -364,7 +366,9 @@ object SQLConf {
           .createWithDefault(true)
     
       val ORC_COMPRESSION = buildConf("spark.sql.orc.compression.codec")
    -    .doc("Sets the compression codec use when writing ORC files. Acceptable values include: " +
    +    .doc("Sets the compression codec use when writing ORC files. If other compression codec " +
    --- End diff --
    
    Thank you. I had fixed them.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159218522
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/CompressionCodecPrecedenceSuite.scala ---
    @@ -0,0 +1,60 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql
    --- End diff --
    
    Thank you. I had move it to `org.apache.spark.sql.execution.datasources.parquet`.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85380 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85380/testReport)** for PR 20076 at commit [`10e5462`](https://github.com/apache/spark/commit/10e546228e0b147ad26a7e23bae89a4d0a56c2c5).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Thanks for the PR. Why are we complicating the PR by doing the rename? Does this actually gain anything other than minor cosmetic changes? It makes the simple PR pretty long ...



---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85739 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85739/testReport)** for PR 20076 at commit [`26c1c61`](https://github.com/apache/spark/commit/26c1c61ffd5742b71aefdec33ddcb69b2222a944).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85594 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85594/testReport)** for PR 20076 at commit [`253b2a2`](https://github.com/apache/spark/commit/253b2a2c57621bd049a7938fd1cb973ec643e947).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `class CompressionCodecPrecedenceSuite extends SQLTestUtils with SharedSQLContext `


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85595 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85595/testReport)** for PR 20076 at commit [`d60dcd1`](https://github.com/apache/spark/commit/d60dcd121a64e460d0c2337afafdb8db40b4f862).


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159889119
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -323,11 +323,13 @@ object SQLConf {
         .createWithDefault(false)
     
       val PARQUET_COMPRESSION = buildConf("spark.sql.parquet.compression.codec")
    -    .doc("Sets the compression codec use when writing Parquet files. Acceptable values include: " +
    -      "uncompressed, snappy, gzip, lzo.")
    +    .doc("Sets the compression codec used when writing Parquet files. If other compression codec " +
    +      "configuration was found through hive or parquet, the precedence would be `compression`, " +
    --- End diff --
    
    > Sets the compression codec used when writing Parquet files. If either `compression` or `parquet.compression` is specified in the table-specific options/properties, the precedence would be `compression`, ...


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158636269
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    Let's do Parquet and ORC ones here for now if that's also fine to @gatorsmile.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158663731
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/CompressionCodecSuite.scala ---
    @@ -0,0 +1,61 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql.hive
    --- End diff --
    
    Move it to sql/core.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Sure, let's revert back the rename then.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159802320
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -27,7 +28,7 @@ import org.apache.spark.sql.internal.SQLConf
     /**
      * Options for the Parquet data source.
      */
    -private[parquet] class ParquetOptions(
    --- End diff --
    
    Yes, It should be revived. Thanks.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158629711
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    We could alternatively say `compressionCodecName` here. It's rather names like `UNCOMPRESSED`, `LZO`, etc in this case. For the text based sources, they are canonical class names so I am okay with `compressionCodecClassName`  but for ORC and Parquet these are not classes.


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159653433
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -27,7 +28,7 @@ import org.apache.spark.sql.internal.SQLConf
     /**
      * Options for the Parquet data source.
      */
    -private[parquet] class ParquetOptions(
    --- End diff --
    
    Can we revive `private[parquet]`?


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158631203
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    So, change all `compressionCodecClassName` and `compressionCodec` to `compressionCodecName`?  In `TextOptions` ,`JSONOptions` and `CSVOptions` too ?


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85740 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85740/testReport)** for PR 20076 at commit [`9466797`](https://github.com/apache/spark/commit/946679745f16838932e74fabb70f2ad702fa4640).


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158628479
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    @HyukjinKwon Seems you're right.
    @gatorsmile  Are we mistaken, shouldn't we change ParquetOptions's  `compressionCodec ` to `compressionCodecClassName `? Because `OrcOptions` and `TextOptions` are all using `compressionCodec `.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    @gatorsmile 
    I have added two test cases. Please review them. Thank you very much.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85594 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85594/testReport)** for PR 20076 at commit [`253b2a2`](https://github.com/apache/spark/commit/253b2a2c57621bd049a7938fd1cb973ec643e947).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85739 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85739/testReport)** for PR 20076 at commit [`26c1c61`](https://github.com/apache/spark/commit/26c1c61ffd5742b71aefdec33ddcb69b2222a944).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r158629541
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetOptions.scala ---
    @@ -42,8 +43,15 @@ private[parquet] class ParquetOptions(
        * Acceptable values are defined in [[shortParquetCompressionCodecNames]].
        */
       val compressionCodecClassName: String = {
    --- End diff --
    
    `compressionCodecClassName ` is a better name. We should change all the others to this.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    retest this please


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Also add an end-to-end test case? For example, the one using in the https://stackoverflow.com/questions/36941122/spark-sql-ignores-parquet-compression-propertie-specified-in-tblproperties ?


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85400 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85400/testReport)** for PR 20076 at commit [`9229e6f`](https://github.com/apache/spark/commit/9229e6f1fa8f9fe58d279c6ab14cb1d20068a277).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Try this?
    
    ```SQL
    CREATE TABLE A USING Parquet
    OPTIONS('parquet.compression' = 'gzip')
    AS SELECT 1 as col1
    ```


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85741 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85741/testReport)** for PR 20076 at commit [`1a8c654`](https://github.com/apache/spark/commit/1a8c654805656d3e143c2e63355c7b6365dac471).
     * This patch **fails Scala style tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159142783
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -364,7 +366,9 @@ object SQLConf {
           .createWithDefault(true)
     
       val ORC_COMPRESSION = buildConf("spark.sql.orc.compression.codec")
    -    .doc("Sets the compression codec use when writing ORC files. Acceptable values include: " +
    +    .doc("Sets the compression codec use when writing ORC files. If other compression codec " +
    --- End diff --
    
    s/use when/used when


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark pull request #20076: [SPARK-21786][SQL] When acquiring 'compressionCod...

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

    https://github.com/apache/spark/pull/20076#discussion_r159142765
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -323,11 +323,13 @@ object SQLConf {
         .createWithDefault(false)
     
       val PARQUET_COMPRESSION = buildConf("spark.sql.parquet.compression.codec")
    -    .doc("Sets the compression codec use when writing Parquet files. Acceptable values include: " +
    -      "uncompressed, snappy, gzip, lzo.")
    +    .doc("Sets the compression codec use when writing Parquet files. If other compression codec " +
    --- End diff --
    
    s/use when/used when


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85377 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85377/testReport)** for PR 20076 at commit [`05e52b6`](https://github.com/apache/spark/commit/05e52b6a5b63febe881569993ef3b8b2508d7aad).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85394 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85394/testReport)** for PR 20076 at commit [`e510b48`](https://github.com/apache/spark/commit/e510b486ab1cea2f2f4f855747c86cd8af73728c).


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85388 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85388/testReport)** for PR 20076 at commit [`2ab2d29`](https://github.com/apache/spark/commit/2ab2d293a0548b66070e840372e589eb2949a0ff).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

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


---

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


[GitHub] spark issue #20076: [SPARK-21786][SQL] When acquiring 'compressionCodecClass...

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

    https://github.com/apache/spark/pull/20076
  
    **[Test build #85740 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/85740/testReport)** for PR 20076 at commit [`9466797`](https://github.com/apache/spark/commit/946679745f16838932e74fabb70f2ad702fa4640).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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