[ 
https://issues.apache.org/jira/browse/AVRO-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaolu Ye updated AVRO-760:
---------------------------

    Attachment: test-python.avpr
                test.avpr

test.avpr is the original protocol for python to parse. test-python.avpr is the 
output of below python script:

j_str1 = open("test.avpr",'rb').read()    
P = protocol.parse(j_str1)
f = open("test-python.avpr","w")
f.write(str(P))
f.close()

As you can see, the SecuirtyType refered in MyProduct doesn't have namespace 
com.foo.bar which causes issue when doing "protocol.parse(str(P))"

> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to