apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
51 stars 39 forks source link

[feat] Support schema field type promotion #159

Closed RobertIndie closed 10 months ago

RobertIndie commented 10 months ago

Motivation

The client is not correctly following Avro's type promotion rules, 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. However the actual behavior is that the Python client's schema deserialization is too strict, and type promotion is not happening as expected.

Modification