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/03/04 11:49:49 UTC
[GitHub] [pulsar] ivankelly commented on a change in pull request #3690:
[schema] Introduce GenericRecordBuilder and the avro implementation
ivankelly commented on a change in pull request #3690: [schema] Introduce GenericRecordBuilder and the avro implementation
URL: https://github.com/apache/pulsar/pull/3690#discussion_r262027147
##########
File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/generic/GenericAvroSchema.java
##########
@@ -78,4 +79,8 @@ public GenericRecord decode(byte[] bytes, byte[] schemaVersion) {
}
}
+ @Override
+ public GenericRecordBuilder newRecordBuilder() {
Review comment:
Since the builder only handled primative types, we should throw an exception if we try to create a builder with a schema that has complex types.
----------------------------------------------------------------
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