[ 
https://issues.apache.org/jira/browse/AVRO-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Pan updated AVRO-2525:
---------------------------
    Description: 
Currently, `"The datum #\{datum.inspect} is not an example of schema 
#\{expected_schema}"` is displayed when `AvroTypeError` is raised.

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

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

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


> 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
>            Priority: Minor
>
> Currently, `"The datum #\{datum.inspect} is not an example of schema 
> #\{expected_schema}"` is displayed when `AvroTypeError` is raised.
> In the case that user will likely mistype the field name (typo or 
> upper-lower), `nil` will be displayed for `#\{datum.inspect}`. When there are 
> multiple fields mistyped, especially 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)

Reply via email to