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/11/05 11:16:42 UTC
[GitHub] [pulsar] wolfstudy commented on issue #5109:
[function]ProtobufSchema.of run time error
wolfstudy commented on issue #5109: [function]ProtobufSchema.of run time error
URL: https://github.com/apache/pulsar/issues/5109#issuecomment-549779712
@LeisureChou
Hello, i use `pulsar 2.4.1`, the protobuf schema function can create correctly.
```
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client</artifactId>
<version>2.4.1</version>
</dependency>
```
schema def as follows:
```
{
"type": "PROTOBUF",
"schema": "{\"type\":\"record\",\"name\":\"Test\",\"fields\":[{\"name\":\"num\",\"type\":[\"null\",\"int\"]},{\"name\":\"msf\",\"type\":[\"null\",\"string\"]}]}",
"properties": {"__alwaysAllowNull":"true"}
}
```
You can try again with version 2.4.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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services