eolivelli opened a new pull request #9785:
URL: https://github.com/apache/pulsar/pull/9785


   ### Motivation
   When you are dealing with structured data it would be pretty useful to have 
a tool that prints decoded records directly to the console.
   
   ### Modifications
   
   Add two new options to the "pulsar-client consume" tool:
   - "--schema-type" option, that can be "bytes" and "auto_consume" in order to 
select the Schema (in particular you are interested in AUTO_CONSUME if you are 
dealing with GenericRecords)
   - "--hide-content" boolean option, that shuts down the printing of the 
contents of the messages, in case they are in binary form or that you are using 
the tool only to test if any message is coming from the topic
   
   In case of GenericRecords we are printing the content of the record like a 
Java Map. We are also handling nested GenericRecord structures as well.
   
   
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to