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.jinhua6@...>
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.jinhua6@...>
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.jinhua6@...>
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.jinhua6@...>
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: [email protected]
For additional commands, e-mail: [email protected]