[
https://issues.apache.org/jira/browse/AVRO-3206?focusedWorklogId=651361&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-651361
]
ASF GitHub Bot logged work on AVRO-3206:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Sep/21 21:40
Start Date: 15/Sep/21 21:40
Worklog Time Spent: 10m
Work Description: dkulp merged pull request #1335:
URL: https://github.com/apache/avro/pull/1335
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 651361)
Time Spent: 40m (was: 0.5h)
> Provide more information in serialization error messages in
> SpecificDatumWriter
> -------------------------------------------------------------------------------
>
> Key: AVRO-3206
> URL: https://issues.apache.org/jira/browse/AVRO-3206
> Project: Apache Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.10.2
> Reporter: Gyula Komlossi
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> In certain cases, when there is an error (like NPE, ClassCastException) in
> the "*writeField*" method of the "*SpecificDatumWriter*" class, the thrown
> exception doesn't contain the specific field causing the problem.
> Similarly as implemented in GenericDatumWriter, the same exceptions could be
> caught and their message improved by adding the related field name causing
> the problem.
> Currently, the message is like this:
> {code:java}
> java.lang.NullPointerException: null of string of
> org.apache.avro.test.TestRecord
> {code}
> But with the improvement it would be:
> {code:java}
> java.lang.NullPointerException: null of string in field 'name' of
> org.apache.avro.test.TestRecord
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)