Skip to content

Commit

Permalink
allow only GZIP as compression algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-gdoci committed Oct 30, 2023
1 parent 333bc07 commit 2f9ee4d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/java/net/snowflake/ingest/utils/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,10 @@ public static BdecVersion fromInt(int val) {
* CompressionCodecName, but we want to control and allow only specific values of that.
*/
public enum BdecParquetCompression {
UNCOMPRESSED,
GZIP,
SNAPPY,
ZSTD;
GZIP;

public CompressionCodecName getCompressionCodec() {
return (this == UNCOMPRESSED
? CompressionCodecName.fromConf(null)
: CompressionCodecName.fromConf(this.name()));
return CompressionCodecName.fromConf(this.name());
}

public static BdecParquetCompression fromName(String name) {
Expand Down

0 comments on commit 2f9ee4d

Please sign in to comment.