presto-hive/src/main/java/io/prestosql/plugin/hive/s3select/S3SelectPushdown.java/S3SelectPushdown/isCompressionCodecSupported
class S3SelectPushdown:    public static boolean isCompressionCodecSupported(InputFormat<?, ?> inputFormat, Path path)
    {
        if (inputFormat instanceof TextInputFormat) {
            return getCompressionCodec((TextInputFormat) inputFormat, path)
                    .map(codec -> (codec instanceof GzipCodec) || (codec instanceof BZip2Codec))
                    .orElse(true);
        }

        return false;
    }