Henrique Mota created AVRO-2941:
-----------------------------------
Summary: Specify in the exception which field the error occurred
when writing a field in GenericDatumWriter
Key: AVRO-2941
URL: https://issues.apache.org/jira/browse/AVRO-2941
Project: Apache Avro
Issue Type: Improvement
Components: java
Affects Versions: 1.9.2, 1.10.0, 1.8.2
Reporter: Henrique Mota
Assignee: Henrique Mota
In current versions, when a field cannot be written, an exception is thrown but
it is not possible to know which field generated an error.
Ex:
{code:java}
record Bacon {
long id;
string description;
}
{code}
When a bacon with a null and serialized description only one NPE is launched
without specifying which field was in error, the same occurs if the value
cannot be serialized due to type incompatibility
--
This message was sent by Atlassian Jira
(v8.3.4#803005)