[ 
https://issues.apache.org/jira/browse/AVRO-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870672#comment-16870672
 ] 

Michael A. Smith edited comment on AVRO-2443 at 6/23/19 9:13 PM:
-----------------------------------------------------------------

A similar bug exists in lang/py at avro.io in write_decimal_bytes and 
write_decimal_fixed, but it's not trivial to solve because the schema isn't 
available in the scope of those functions.


was (Author: kojiromike):
A similar bug exists in lang/py at avro.io in write_decimal_bytes and 
write_decimal_fixed,

> Python: incorrect call of AvroTypeException 
> --------------------------------------------
>
>                 Key: AVRO-2443
>                 URL: https://issues.apache.org/jira/browse/AVRO-2443
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>            Reporter: Piotr Gołąb
>            Priority: Minor
>
> There is a bug in the Validate function for py3 validator.
> [https://github.com/apache/avro/blob/master/lang/py3/avro/io.py#L149]
> The `AvroTypeException` will fail (if ever reached), because the exception 
> accepts two arguments: `expected_schema, datum`. 
>  
> This issue was found here: 
> [https://github.com/apache/avro/pull/516/files#r287870842] and might be as 
> well fixed in AVRO-2413.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to