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 2019/06/26 03:19:54 UTC

[GitHub] [pulsar] yjshen opened a new issue #4602: [Schema] SchemaInfo properties are lost

yjshen opened a new issue #4602: [Schema] SchemaInfo properties are lost
URL: https://github.com/apache/pulsar/issues/4602
 
 
   When created a schema like
   ``` scala
   val schemaInfo = StringSchema.utf8().getSchemaInfo
   val pl = new PostSchemaPayload()
         pl.setType(schemaInfo.getType.name())
         pl.setSchema(new String(schemaInfo.getSchema, UTF_8))
         pl.setProperties(schemaInfo.getProperties)
         try {
           admin.schemas().createSchema(TopicName.get(topic).toString, pl)
   ```
   and get schema using
   ```scala
   val siReturn = admin.schemas().getSchemaInfo(TopicName.get(topic).toString)
   ```
   
   `siReturn` I got doesn't contain `__charset` properties that `StringSchema.utf8().getSchemaInfo` contains.

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


With regards,
Apache Git Services