Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Add log to print error data that failed to deserialize when set `ignore-parse-error` = `true`
public RowData deserialize(@Nullable byte[] message) throws IOException { if (message == null) { return null; } try { final JsonNode root = objectReader.readValue(message); return (RowData) runtimeConverter.convert(root); } catch (Throwable t) { if (ignoreParseErrors) { return null; } throw new IOException( String.format("Failed to deserialize CSV row '%s'.", new String(message)), t); } }