{"record":{"id":"1a5a84e18a88a0d6","repo":"apache/flink","slug":"can-not-convert-s-to-type-s-for-partition-value","errorCode":null,"errorMessage":"Can not convert %s to type %s for partition value","messagePattern":"Can not convert (.+?) to type (.+?) for partition value","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/RowPartitionComputer.java","lineNumber":126,"sourceCode":"                return Integer.valueOf(valStr).byteValue();\n            case SMALLINT:\n                return Short.valueOf(valStr);\n            case INTEGER:\n                return Integer.valueOf(valStr);\n            case BIGINT:\n                return Long.valueOf(valStr);\n            case FLOAT:\n                return Float.valueOf(valStr);\n            case DOUBLE:\n                return Double.valueOf(valStr);\n            case DATE:\n                return LocalDate.parse(valStr);\n            case TIMESTAMP_WITHOUT_TIME_ZONE:\n                return LocalDateTime.parse(valStr);\n            case DECIMAL:\n                return new BigDecimal(valStr);\n            default:\n                throw new RuntimeException(\n                        String.format(\n                                \"Can not convert %s to type %s for partition value\", valStr, type));\n        }\n    }\n}\n","sourceCodeStart":108,"sourceCodeEnd":132,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/RowPartitionComputer.java#L108-L132","documentation":"Error \"Can not convert %s to type %s for partition value\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Can not convert the reported value to type the reported value for partition value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Can not convert the reported value to type the reported value for partition value.","solutions":["Address the cause reported by the error message: Can not convert the reported value to type the reported value for partition value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Can not convert the reported value to type the reported value for partition value\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}