[Issue 5454][pulsar-client-cpp]Fix cpp client schema version (#5930)
Fixes #5454 ### Motivation The current CPP client cannot correctly obtain the schema version, resulting in an error in parsing with java client when sending data with schema using python client. Test code: ``` import pulsar import json from pulsar.schema import * class Test(Record): name = String() id = Integer() client = pulsar.Client('pulsar://localhost:6650'); producer = client.create_producer('test-producer-schema', schema=AvroSchema(Test)) producer.send(Test(name='Hello', id=1)) client.close() ``` ### Modifications * Add set schema version in msgmetadata ### Verifying this change Add check schema version in unit test SchemaTest
Showing
想要评论请 注册 或 登录