{"record":{"id":"6dd8c98946944d0a","repo":"apache/flink","slug":"unable-to-deserialize-byte-array","errorCode":null,"errorMessage":"Unable to deserialize byte array.","messagePattern":"Unable to deserialize byte array\\.","errorType":"exception","errorClass":"CsvParseException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvToRowDataConverters.java","lineNumber":279,"sourceCode":"            return mills;\n        };\n    }\n\n    private TimestampData convertToTimestamp(\n            JsonNode jsonNode, DateTimeFormatter dateTimeFormatter) {\n        return TimestampData.fromLocalDateTime(\n                LocalDateTime.parse(jsonNode.asText().trim(), dateTimeFormatter));\n    }\n\n    private StringData convertToString(JsonNode jsonNode) {\n        return StringData.fromString(jsonNode.asText());\n    }\n\n    private byte[] convertToBytes(JsonNode jsonNode) {\n        try {\n            return jsonNode.binaryValue();\n        } catch (IOException e) {\n            throw new CsvParseException(\"Unable to deserialize byte array.\", e);\n        }\n    }\n\n    private CsvToRowDataConverter createDecimalConverter(DecimalType decimalType) {\n        final int precision = decimalType.getPrecision();\n        final int scale = decimalType.getScale();\n        return jsonNode -> {\n            BigDecimal bigDecimal;\n            if (jsonNode.isBigDecimal()) {\n                bigDecimal = jsonNode.decimalValue();\n            } else {\n                bigDecimal = new BigDecimal(jsonNode.asText());\n            }\n            return DecimalData.fromBigDecimal(bigDecimal, precision, scale);\n        };\n    }\n\n    private CsvToRowDataConverter createArrayConverter(ArrayType arrayType) {","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvToRowDataConverters.java#L261-L297","documentation":"Error \"Unable to deserialize byte array.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Unable to deserialize byte array.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Unable to deserialize byte array.","solutions":["Address the cause reported by the error message: Unable to deserialize byte array.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Unable to deserialize byte array.\") 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"}