Victor Mota created AVRO-2113:
---------------------------------
Summary: 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
Priority: Minor
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
(v6.4.14#64029)