BewareMyPower commented on issue #9483:
URL: https://github.com/apache/pulsar/issues/9483#issuecomment-775915889


   I've added more detail logs.
   
   | values | error message |
   | :- | :- |
   | `Array(Array(Float()))` | `org.apache.avro.SchemaParseException: Undefined 
name: "array"` |
   | `Map(Array(Float()))` | `org.apache.avro.SchemaParseException: Undefined 
name: "array"` |
   | `Map(Map(Float()))` | `org.apache.avro.SchemaParseException: Undefined 
name: "map"` |
   | `Array(Map(Float()))` | `org.apache.avro.SchemaParseException: Undefined 
name: "map"` |
   
   The error message is thrown by `Schema.Parser#parse` in broker side.
   
   ```java
           try {
               Schema.Parser avroSchemaParser = new Schema.Parser();
               avroSchemaParser.setValidateDefaults(false);
               avroSchemaParser.parse(new String(data, UTF_8)); // failed
   ```
   
   It looks like when the schema bytes generated by Python client cannot be 
parsed by broker.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to