{"record":{"id":"2855eaed74791a29","repo":"prestodb/presto","slug":"hive-unsupported-format","errorCode":"HIVE_UNSUPPORTED_FORMAT","errorMessage":"Output format %s with SerDe %s is not supported","messagePattern":"Output format (.+?) with SerDe (.+?) is not supported","errorType":"error_code","errorClass":"PrestoException","httpStatus":null,"severity":"error","filePath":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java","lineNumber":3566,"sourceCode":"        if (session.getSqlFunctionProperties().isLegacyTimestamp() && !allowCorruptWritesForTesting && !timeZone.equals(DateTimeZone.getDefault())) {\n            throw new PrestoException(HIVE_TIMEZONE_MISMATCH, format(\n                    \"To write Hive data, your JVM timezone must match the Hive storage timezone. Add -Duser.timezone=%s to your JVM arguments.\",\n                    timeZone.getID()));\n        }\n    }\n\n    private static HiveStorageFormat extractHiveStorageFormat(Table table)\n    {\n        StorageFormat storageFormat = table.getStorage().getStorageFormat();\n        String outputFormat = storageFormat.getOutputFormat();\n        String serde = storageFormat.getSerDe();\n\n        for (HiveStorageFormat format : values()) {\n            if (format.getOutputFormat().equals(outputFormat) && format.getSerDe().equals(serde)) {\n                return format;\n            }\n        }\n        throw new PrestoException(HIVE_UNSUPPORTED_FORMAT, format(\"Output format %s with SerDe %s is not supported\", outputFormat, serde));\n    }\n\n    private static Map<String, String> extractSerdeParameters(Map<String, String> tableParameters)\n    {\n        return tableParameters.entrySet().stream()\n                .filter(entry -> TEXTFILE_SERDE_KEYS.contains(entry.getKey()))\n                .collect(toImmutableMap(Map.Entry::getKey, Map.Entry::getValue));\n    }\n\n    @VisibleForTesting\n    static String encodePreferredOrderingColumns(List<SortingColumn> preferredOrderingColumns)\n    {\n        return Joiner.on(COMMA).join(preferredOrderingColumns.stream()\n                .map(SortingColumn::sortingColumnToString)\n                .collect(toImmutableList()));\n    }\n\n    @VisibleForTesting","sourceCodeStart":3548,"sourceCodeEnd":3584,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java#L3548-L3584","documentation":"extractHiveStorageFormat inspects the table's StorageFormat; when the output format / SerDe combination read from the metastore does not map to any known HiveStorageFormat, the connector cannot interpret the table's file format.","triggerScenarios":"Thrown at presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java:3566 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Alter the table to a supported output-format/SerDe combination","Check for typos or custom SerDes in the metastore storage descriptor"],"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"}