You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Mike Pan (Jira)" <ji...@apache.org> on 2019/08/25 17:23:00 UTC

[jira] [Created] (AVRO-2525) Display field name when raising AvroTypeError

Mike Pan created AVRO-2525:
------------------------------

             Summary: Display field name when raising AvroTypeError
                 Key: AVRO-2525
                 URL: https://issues.apache.org/jira/browse/AVRO-2525
             Project: Apache Avro
          Issue Type: Improvement
          Components: ruby
            Reporter: Mike Pan


Currently, `"The datum #\{datum.inspect} is not an example of schema #\{expected_schema}"` is displayed when `AvroTypeError` is raised.

In the case user will mostly mistype the field name (typo or upper-lower), `nil` will be displayed for `#\{datum.inspect}`. When there are multiple fields mistyped, which is much likely for a large schema initiative, it is quite difficult to find out the mistyped field.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)