avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-760) Python str(Protocol) bug in handling namespace
Date Tue, 03 Jan 2012 07:00:22 GMT

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

Harsh J commented on AVRO-760:

Or perhaps you're talking about this:

{"namespace": "com.foo", "protocol": "MyProtocol", "types": [{"type": "record", "namespace":
"com.foo.bar", "name": "ProductRef", "fields": [{"type": ["null", {"symbols": ["AAA", "BBB"],
"type": "enum", "name": "SecurityType"}], "name": "securityType"}]}, {"type": "record", "namespace":
"com.foo.zoo", "name": "MyProduct", "fields": [{"type": ["null", "SecurityType"], "name":

Not containing com.foo.bar.SecurityType, as intended?
> Python str(Protocol) bug in handling namespace
> ----------------------------------------------
>                 Key: AVRO-760
>                 URL: https://issues.apache.org/jira/browse/AVRO-760
>             Project: Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.4.1
>            Reporter: Xiaolu Ye
>         Attachments: test-python.avpr, test.avpr
> If I have a protocol that has record with field of a type defined in a different namespace,
Python Protocol can parse it fine, but the str(Protocol) output does not use full name (namespace
+ name) for the type when referenced in a different namespace. Please see the attachment for

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message