{"record":{"id":"052e6e48c6d37967","repo":"prestodb/presto","slug":"not-supported-052e6e","errorCode":"NOT_SUPPORTED","errorMessage":"Unsupported file format: ${format}","messagePattern":"Unsupported file format: (.+?)","errorType":"error_code","errorClass":"PrestoException","httpStatus":null,"severity":"error","filePath":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileFormat.java","lineNumber":71,"sourceCode":"        FileFormat prestoFileFormat;\n        switch (format) {\n            case ORC:\n                prestoFileFormat = ORC;\n                break;\n            case PARQUET:\n                prestoFileFormat = PARQUET;\n                break;\n            case AVRO:\n                prestoFileFormat = AVRO;\n                break;\n            case METADATA:\n                prestoFileFormat = METADATA;\n                break;\n            case PUFFIN:\n                prestoFileFormat = PUFFIN;\n                break;\n            default:\n                throw new PrestoException(NOT_SUPPORTED, \"Unsupported file format: \" + format);\n        }\n\n        return prestoFileFormat;\n    }\n\n    public org.apache.iceberg.FileFormat toIceberg()\n    {\n        org.apache.iceberg.FileFormat fileFormat;\n        switch (this) {\n            case ORC:\n                fileFormat = org.apache.iceberg.FileFormat.ORC;\n                break;\n            case PARQUET:\n                fileFormat = org.apache.iceberg.FileFormat.PARQUET;\n                break;\n            case AVRO:\n                fileFormat = org.apache.iceberg.FileFormat.AVRO;\n                break;","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileFormat.java#L53-L89","documentation":"FileFormat.fromIcebergFileFormat maps Iceberg's FileFormat enum to Presto's; the switch default throws NOT_SUPPORTED for any format value not in ORC/PARQUET/AVRO/METADATA/PUFFIN, meaning the data or metadata file uses a format this Presto build cannot read.","triggerScenarios":"Thrown at presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileFormat.java:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade Presto to a release supporting the file format in question","Rewrite/compact the table so files use supported formats (ORC/Parquet/AVRO)"],"exampleFix":null,"handlingStrategy":"fallback","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-12T02:17:10.037Z"}