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


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.

Reply via email to