You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2018/04/02 03:54:00 UTC
[jira] [Updated] (AVRO-2113) Improve unexpected type error message
[ https://issues.apache.org/jira/browse/AVRO-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiruvalluvan M. G. updated AVRO-2113:
--------------------------------------
Fix Version/s: 1.8.3
Status: Patch Available (was: Open)
> Improve unexpected type error message
> -------------------------------------
>
> Key: AVRO-2113
> URL: https://issues.apache.org/jira/browse/AVRO-2113
> Project: Avro
> Issue Type: Improvement
> Components: c++
> Reporter: Victor Mota
> Assignee: Thiruvalluvan M. G.
> Priority: Minor
> Fix For: 1.8.3
>
>
> Currently the error message for default type mismatch is not very user friendly:
> https://github.com/apache/avro/blob/17f2d75132021fafeca29edbdcade40df960fdc9/lang/c%2B%2B/impl/Compiler.cc#L158
> ie. "Unexpected type for default value: Expected 3, but found 2". Specifying the field where this is happening and what the types mismatched are in human readable format (ie. string, etc) would benefit the user a lot in debugging.
> Here is an example of a user having issues understanding the error: https://issuetracker.google.com/issues/70351564.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)