{"record":{"id":"7ab5dbf5f2bd4d78","repo":"apache/flink","slug":"unsupported-hive-version-for-orc-shim","errorCode":null,"errorMessage":"Unsupported hive version for orc shim: {}","messagePattern":"Unsupported hive version for orc shim: (.+?)","errorType":"validation","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/shim/OrcShim.java","lineNumber":68,"sourceCode":"    boolean nextBatch(RecordReader reader, BATCH rowBatch) throws IOException;\n\n    /** Default with orc dependent, we should use v2.3.0. */\n    static OrcShim<VectorizedRowBatch> defaultShim() {\n        return new OrcShimV230();\n    }\n\n    /** Create shim from hive version. */\n    static OrcShim<VectorizedRowBatch> createShim(String hiveVersion) {\n        if (hiveVersion.startsWith(\"2.0\")) {\n            return new OrcShimV200();\n        } else if (hiveVersion.startsWith(\"2.1\")) {\n            return new OrcShimV210();\n        } else if (hiveVersion.startsWith(\"2.2\")\n                || hiveVersion.startsWith(\"2.3\")\n                || hiveVersion.startsWith(\"3.\")) {\n            return new OrcShimV230();\n        } else {\n            throw new UnsupportedOperationException(\n                    \"Unsupported hive version for orc shim: \" + hiveVersion);\n        }\n    }\n}\n","sourceCodeStart":50,"sourceCodeEnd":73,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-orc/src/main/java/org/apache/flink/orc/shim/OrcShim.java#L50-L73","documentation":"Fires when createShim receives a Hive version string that matches none of the supported prefixes (2.0.x through 2.3.x and the 1.x branch handled above). No ORC shim implementation exists for that Hive release, so the reader/writer cannot be constructed with this dependency set.","triggerScenarios":"Triggered at runtime when the operation fails because: Unsupported hive version for orc shim: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Unsupported hive version for orc shim: the reported value.","solutions":["Address the cause reported by the error message: Unsupported hive version for orc shim: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Unsupported hive version for orc shim: the reported value\") and rerun the job or command.","handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","contentChangedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}