[GitHub] [pulsar] yaalsn added a comment to the discussion: [Python Client] How to subscribe to two topics - both with different schemas?

2023-05-11 Thread GitBox


GitHub user yaalsn added a comment to the discussion: [Python Client] How to 
subscribe to two topics - both with different schemas?

Not JSON schema, I mean sending JSON string, just bytes. I think this can solve 
your problem quickly. 

GitHub link: 
https://github.com/apache/pulsar/discussions/20263#discussioncomment-5880284


This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@pulsar.apache.org



[GitHub] [pulsar] yaalsn added a comment to the discussion: [Python Client] How to subscribe to two topics - both with different schemas?

2023-05-11 Thread GitBox


GitHub user yaalsn added a comment to the discussion: [Python Client] How to 
subscribe to two topics - both with different schemas?

If pydantic, how about using `JSON` instead of `Avro`, you can convert the 
models to `JSON` easily 

https://docs.pydantic.dev/latest/usage/exporting_models/

GitHub link: 
https://github.com/apache/pulsar/discussions/20263#discussioncomment-5880223


This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@pulsar.apache.org