codelipenghui commented on pull request #9895:
URL: https://github.com/apache/pulsar/pull/9895#issuecomment-798823545
We added `Object getNativeRecord()` in the GenericRecord, is it better to
reuse this method to support primitive types? Looks like
```java
if (record.getSchemaType() == SchemaType.STRING) {
String value = (String) record.getNativeRecord();
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]