sijie commented on pull request #9895: URL: https://github.com/apache/pulsar/pull/9895#issuecomment-800815707
Why not return a PrimitiveRecord that implements a `GenericRecord` interface? `getSchemaType` will give you the right schema type and `getNativeRecord` will give you the right underlying object. So a lot of logic that already deal with AUTO_SCHEMA would almost just work. We don't need to worry about there is another `AUTO_CONSUME`. ---------------------------------------------------------------- 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]
