You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/25 16:35:17 UTC

[GitHub] [pulsar-client-go] bpereto opened a new issue #739: `NewProtoSchema` is initialized as AvroSchema

bpereto opened a new issue #739:
URL: https://github.com/apache/pulsar-client-go/issues/739


   #### Expected behavior
   
   When using `NewProtoSchema` a protobuf schema for the schema registry in pulsar is expected.
   Besides that, what is here the desired format in the registry when schema type is `PROTOBUF` ?
   
   #### Actual behavior
   
   When using `NewProtoSchema` (https://github.com/apache/pulsar-client-go/blob/128d8ea3e24035a49fc81a516b01bc57b654a64a/pulsar/schema.go#L129) its initialized as avro schema under the hood and given schema is expected to be in an avro format.
   
   Therefore the PROTOBUF schema type is kind of pointless at the moment and the Avro schema type could be used instead?
   
   #### Steps to reproduce
   
   ```
   producer, err := client.CreateProducer(pulsar.ProducerOptions{
   		Topic:  "test",
   		Schema: pulsar.NewProtoSchema(schema, nil),
   })
   ```
   
   `schema` is expected to have an avro format.
   
   #### System configuration
   **Pulsar version**: 2.9.1
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org