BewareMyPower opened a new pull request, #119:
URL: https://github.com/apache/pulsar-client-python/pull/119

   Fixes https://github.com/apache/pulsar-client-python/issues/108
   
   ### Motivation
   
   Currently the Python client uses the reader schema, which is the schema of 
the consumer, to decode Avro messages. However, when the writer schema is 
different from the reader schema, the decode will fail.
   
   ### Modifications
   
   Add `attach_client` method to `Schema` and call it when creating consumers 
and readers. This method stores a reference to a `_pulsar.Client` instance, 
which leverages the C++ APIs added in 
https://github.com/apache/pulsar-client-cpp/pull/257 to fetch schema info. The 
`AvroSchema` class fetches and caches the writer schema if it is not cached, 
then use both the writer schema and reader schema to decode messages.
   
   Add `test_schema_evolve` to test consumers or readers can decode any message 
whose writer schema is different with the reader schema.


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

To unsubscribe, e-mail: [email protected]

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

Reply via email to