[ 
https://issues.apache.org/jira/browse/AVRO-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218320#comment-17218320
 ] 

Henrique Mota commented on AVRO-2941:
-------------------------------------

the issue #AVRO-2514 improves the message but is still not very useful in cases 
where we have several domains

> 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.8.2, 1.10.0, 1.9.2
>            Reporter: Henrique Mota
>            Assignee: Henrique Mota
>            Priority: Minor
>
> 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)

Reply via email to