Add support for reading ZSTD compressed ORC files
@@ -48,6 +48,7 @@ import java.util.Optional;
import static com.facebook.presto.orc.metadata.CompressionKind.NONE;
import static com.facebook.presto.orc.metadata.CompressionKind.SNAPPY;
import static com.facebook.presto.orc.metadata.CompressionKind.ZLIB;
+import static com.facebook.presto.orc.metadata.CompressionKind.ZSTD;
import static com.facebook.presto.orc.metadata.PostScript.HiveWriterVersion.ORC_HIVE_8732;
import static com.facebook.presto.orc.metadata.PostScript.HiveWriterVersion.ORIGINAL;
import static com.facebook.presto.orc.metadata.statistics.BinaryStatistics.BINARY_VALUE_BYTES_OVERHEAD;
@@ -586,6 +587,8 @@ public class OrcMetadataReader
return ZLIB;
case SNAPPY:
return SNAPPY;
+ case ZSTD:
+ return ZSTD;
default:
throw new IllegalStateException(compression + " compression not implemented yet");
}
