eolivelli commented on pull request #9895: URL: https://github.com/apache/pulsar/pull/9895#issuecomment-798840367
@codelipenghui You are suggesting to use GenericRecord as an interface that represents and kind of data structure. Indeed I thought a lot about your same idea! But in the end I believe it does not fit well. GenericRecord itself is a general purpose keyvalue dictionary, and using it to represent primitive types, arrays, KeyValue objects... is not intuitive and it will also require lots of plumbing and adapters I believe that having a Schema that returns Object is really want you expect when you are dealing with generic code. ---------------------------------------------------------------- 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]
