congbobo184 opened a new pull request #12886:
URL: https://github.com/apache/pulsar/pull/12886
## Motivation
now, when we use Schema.AUTO_CONSUME will return GenericRecord, but in json
or avro primitive schema, it will not decode data to GenericRecord. So, when
use Schema.AUTO_CONSUME and the data schema is json or avro primitive schema,
we should return GenericObjectWrapper.
note:
1. we can't change the GenericObjectWrapper.get to pulsar primitive schema,
because their decode and encode are different.
### Modifications
when Schema.AUTO_CONSUME receive json or avro primitive schema, return the
original schema and getValue return GenericObjectWrapper.
### Verifying this change
Add the tests for it
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (yes)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)
--
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]