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:25:00 UTC
[jira] [Updated] (AVRO-2525) Display field name when raising
AvroTypeError
[ 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 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 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.
> 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 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)