BewareMyPower opened a new pull request #9548:
URL: https://github.com/apache/pulsar/pull/9548


   Fixes #9483 
   
   ### Motivation
   
   Currently Python client doesn't handle nested `Map` or `Array` well, the 
generated schema string is invalid. It's because when `Map`/`Array`'s 
`schema()` method set the `values` field of schema string, it only ignores the 
`Record` type but not `Map` and `Array`.
   
   ### Modifications
   
   - Fix nested Map or Array in schema doesn't work.
   - Add 4 tests for `Map<Map>`, `Map<Array>`, `Array<Array>`, `Array<Map>` to 
cover all nested cases that involve `Map` or `Array`.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   
     - *Added SchemaTest.test_avro_map_array to schema_test.py*


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