{"record":{"id":"249cbbed7914b3df","repo":"prestodb/presto","slug":"not-supported-249cbb","errorCode":"NOT_SUPPORTED","errorMessage":"Compression extension not supported for S3 Select: ${path}","messagePattern":"Compression extension not supported for S3 Select: (.+?)","errorType":"error_code","errorClass":"PrestoException","httpStatus":null,"severity":"error","filePath":"presto-hive/src/main/java/com/facebook/presto/hive/s3select/S3SelectLineRecordReader.java","lineNumber":198,"sourceCode":"            selectObjectRequest.setScanRange(scanRange);\n        }\n\n        return selectObjectRequest;\n    }\n\n    protected CompressionType getCompressionType(Path path)\n    {\n        CompressionCodec codec = compressionCodecFactory.getCodec(path);\n        if (codec == null) {\n            return CompressionType.NONE;\n        }\n        if (codec instanceof GzipCodec) {\n            return CompressionType.GZIP;\n        }\n        if (codec instanceof BZip2Codec) {\n            return CompressionType.BZIP2;\n        }\n        throw new PrestoException(NOT_SUPPORTED, \"Compression extension not supported for S3 Select: \" + path);\n    }\n\n    private int readLine(Text value)\n            throws IOException\n    {\n        try {\n            return retry()\n                    .maxAttempts(maxAttempts)\n                    .exponentialBackoff(BACKOFF_MIN_SLEEP, maxBackoffTime, maxRetryTime, 2.0)\n                    .stopOn(InterruptedException.class, UnrecoverableS3OperationException.class, AbortedException.class)\n                    .run(\"readRecordsContentStream\", () -> {\n                        if (isFirstLine) {\n                            recordsFromS3 = 0;\n                            selectObjectContent = selectClient.getRecordsContent(selectObjectContentRequest);\n                            closer.register(selectObjectContent);\n                            reader = new LineReader(selectObjectContent, lineDelimiter.getBytes(StandardCharsets.UTF_8));\n                            closer.register(reader);\n                            isFirstLine = false;","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-hive/src/main/java/com/facebook/presto/hive/s3select/S3SelectLineRecordReader.java#L180-L216","documentation":"getCompressionType inspects the path's compression codec; S3 Select only supports NONE, GZIP, and BZIP2, so any other compressed file routed through S3SelectLineRecordReader is rejected as NOT_SUPPORTED.","triggerScenarios":"Thrown at presto-hive/src/main/java/com/facebook/presto/hive/s3select/S3SelectLineRecordReader.java:198 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Store the data uncompressed or as GZIP/BZIP2 for S3 Select","Disable S3 Select for this format so the connector reads it directly","Recompress the source files"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}