[ 
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:

{code}
{"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": 
"securityType"}]}]}
{code}

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 example.

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

        

Reply via email to