Skip to content

Commit

Permalink
Add zstd compression for MultiRFileOutputFormatter (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
FineAndDandy authored and apmoriarty committed Mar 21, 2024
1 parent 5cea2b2 commit 55032e2
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -118,9 +118,10 @@ public static void setGenerateMapFilePerShardLocation(Configuration conf, boolea

public static void setCompressionType(Configuration conf, String compressionType) {
if (compressionType != null) {
if (!("snappy".equals(compressionType) || "lzo".equals(compressionType) || "gz".equals(compressionType) || "none".equals(compressionType)))
if (!("snappy".equals(compressionType) || "lzo".equals(compressionType) || "gz".equals(compressionType) || "zstd".equals(compressionType)
|| "none".equals(compressionType)))

throw new IllegalArgumentException("compressionType must be one of snappy, lzo, gz, or none");
throw new IllegalArgumentException("compressionType must be one of snappy, lzo, gz, zstd, or none");
conf.set(COMPRESSION_TYPE, compressionType);
}
}
Expand Down

0 comments on commit 55032e2

Please sign in to comment.