From 2f9ee4db266ca12214d98e93e96146f0134b2e2c Mon Sep 17 00:00:00 2001 From: Gloria Doci Date: Mon, 30 Oct 2023 10:55:22 +0000 Subject: [PATCH] allow only GZIP as compression algorithm --- src/main/java/net/snowflake/ingest/utils/Constants.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/snowflake/ingest/utils/Constants.java b/src/main/java/net/snowflake/ingest/utils/Constants.java index 3fc99f147..a22bc9f21 100644 --- a/src/main/java/net/snowflake/ingest/utils/Constants.java +++ b/src/main/java/net/snowflake/ingest/utils/Constants.java @@ -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) {