robertwb commented on issue #28664:
URL: https://github.com/apache/beam/issues/28664#issuecomment-1735746230

   I've thought about this some, but haven't actually started any work here. 
It'd be great if Ferran takes this on. 
   
   It'd probably make sense to follow the same pattern as the 
[pubsub](https://github.com/apache/beam/pull/28595) one (namely, taking a 
"format" and "schema" parameter to convert to and from Row objects). (I don't 
know if kafka messages have the equivalent of PubSub attributes.)  
   `JsonUtils.{beamSchemaFromJsonSchema,getJsonBytesToRowFunction}` and 
`AvroUtils.{toBeamSchema,getAvroBytesToRowFunction}`.
   
   Also, in this case there's no Python implementation, so no need for a Python 
variant. Just do it all in Java. 


-- 
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]

Reply via email to