{"record":{"id":"52e3304da207bb23","repo":"prestodb/presto","slug":"not-supported-52e330","errorCode":"NOT_SUPPORTED","errorMessage":"Unsupported iceberg content type: ${fileContent}","messagePattern":"Unsupported iceberg content type: (.+?)","errorType":"error_code","errorClass":"PrestoException","httpStatus":null,"severity":"error","filePath":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileContent.java","lineNumber":61,"sourceCode":"    public static FileContent fromIcebergFileContent(org.apache.iceberg.FileContent fileContent)\n    {\n        // The DELETION_VECTOR enum constant was introduced in newer\n        // iceberg-api releases (V3 spec) and may not be present at compile\n        // time when building against older iceberg-api. Use name() string\n        // comparison so this code compiles + runs against any version that\n        // ships at least DATA/POSITION_DELETES/EQUALITY_DELETES.\n        switch (fileContent) {\n            case DATA:\n                return DATA;\n            case POSITION_DELETES:\n                return POSITION_DELETES;\n            case EQUALITY_DELETES:\n                return EQUALITY_DELETES;\n            default:\n                if (\"DELETION_VECTOR\".equals(fileContent.name())) {\n                    return DELETION_VECTOR;\n                }\n                throw new PrestoException(NOT_SUPPORTED, \"Unsupported iceberg content type: \" + fileContent);\n        }\n    }\n}\n","sourceCodeStart":43,"sourceCodeEnd":65,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileContent.java#L43-L65","documentation":"FileContent.fromIcebergFileContent converts the Iceberg API's FileContent enum to Presto's own enum; an unrecognized content type (e.g. a newer spec constant this build does not map, such as an unexpected switch default) triggers this NOT_SUPPORTED error, indicating a file written with a newer Iceberg content kind.","triggerScenarios":"Thrown at presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileContent.java:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade Presto to a version that maps the new Iceberg file content type","Exclude or clean files of the unsupported content type from the table if possible"],"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-11T21:17:09.523Z"}