You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Michael A. Smith (JIRA)" <ji...@apache.org> on 2019/06/23 15:33:00 UTC

[jira] [Commented] (AVRO-2443) Python: incorrect call of AvroTypeException

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

Michael A. Smith commented on AVRO-2443:
----------------------------------------

I did a quick patch of the call to make it valid in AVRO-2413.

 

(I think there may be at least one other bug in that method, in that if we're so far gone that we don't recognize the "type" of the schema, we may also not have a valid schema object at all, so we may need to handle other kinds of exceptions like AttributeError. But I didn't try to fix that here.)

> 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)