You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "RobertIndie (via GitHub)" <gi...@apache.org> on 2023/10/25 12:25:25 UTC

[PR] [feat] Support schema field type promotion [pulsar-client-python]

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

   ## Motivation
   
   The client is not correctly following [Avro's type promotion rules](https://avro.apache.org/docs/1.11.1/specification/#schema-resolution), leading to a potential problem with data serialization and deserialization.
   
   The expected behavior is that the Python client should correctly follow Avro's type promotion rules and perform type conversion when necessary, ensuring compatibility. But the actual behavior is that the Python client's JSONSchema deserialization is too strict, and type promotion is not happening as expected.
   
   ## Modification
   
   - Support schema field type promotion when validating the python type
   - Convert the field value to the desired compatible python type
   
   
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [feat] Support schema field type promotion [pulsar-client-python]

Posted by "RobertIndie (via GitHub)" <gi...@apache.org>.
RobertIndie merged PR #159:
URL: https://github.com/apache/pulsar-client-python/pull/159


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org