[
https://issues.apache.org/jira/browse/AVRO-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiaolu Ye updated AVRO-702:
---------------------------
Attachment: test1.avpr
MyTestOutput.txt
MyTest.java
test1.avpr: defines the avro protocol
MyTest.java is the junit that can produce the exception
MyTestOuput.txt is the output of schema.toString()
> SchemaParseException: Undefined name: MyInstruction" exception when parse
> schema generated
> ------------------------------------------------------------------------------------------
>
> Key: AVRO-702
> URL: https://issues.apache.org/jira/browse/AVRO-702
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.4.1
> Reporter: Xiaolu Ye
> Attachments: MyTest.java, MyTestOutput.txt, test1.avpr
>
>
> MyTest.java throws "SchemaParseException: Undefined name: MyInstruction"
> exception when calling Schema.parse() given the string created by
> Schema.toString(). The schema is created from the test1.avpr. The output of
> the Schema.toString() is in MyTestOutput.txt.
> If you could take a look at the MyTestOutput.txt, you will see Schema.parse
> assumes "MyInstruction" is in "com.foo.bar" namespace, but it should be in
> "com.foo.basic" namespace from the model definition (test1.avpr). Changing
> Schema.getQualified(String defaultSpace) to always return full (fully
> qualified name) fixes the issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.