BewareMyPower commented on issue #108:
URL:
https://github.com/apache/pulsar-client-python/issues/108#issuecomment-1488657932
A workaround is to change the Python `User` definition from
```python
class User(Record):
name = String()
age = Integer()
```
to
```python
class User(Record):
_sorted_fields = True
name = String()
age = Integer(required=True)
```
To be compatible with the Java client, we have to configure the `required`
field of all fields with `True`, except `String`. In addition, we need to set
`_sorted_fields` with `True`.
--
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]