private static CompressionKind resolveCompression(String codec) {
        CompressionKind retCodec;

        if (codec == null || codec.isEmpty()) codec = "ZLIB";
        codec = codec.toUpperCase();

        try {
            retCodec = CompressionKind.valueOf(codec);
        } catch (IllegalArgumentException e) {
            LOG.warn("Unable to determine compression codec {}, using ZLIB instead", codec);
            retCodec = CompressionKind.valueOf("ZLIB");
        }

        LOG.info("Setting the compression codec to: {}", retCodec.toString());
        return retCodec;
    }
Determine de compression codec based on the name: NONE, ZLIB, SNAPPY, LZO, LZ4, ZSTD
Default ZLIB

@param codec
@return
src/main/java/org/replicadb/manager/file/OrcFileManager.java