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 2021/01/28 02:59:42 UTC

[GitHub] [pulsar] sijie commented on a change in pull request #9343: Issue 9004: Pulsar Schema API: provide Type information for Fields

sijie commented on a change in pull request #9343:
URL: https://github.com/apache/pulsar/pull/9343#discussion_r565784657



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/schema/RecordSchemaBuilder.java
##########
@@ -54,7 +54,17 @@
      * @param genericSchema schema of the field
      * @return field schema builder to build the field.
      */
-    FieldSchemaBuilder field(String fieldName, GenericSchema genericSchema);
+    FieldSchemaBuilder field(String fieldName, org.apache.pulsar.client.api.Schema<?> genericSchema);
+
+    /**
+     * Add a field with the given name and genericSchema to the record.
+     *
+     * @param fieldName name of the field
+     * @param genericSchema schema of the field
+     * @return field schema builder to build the field.
+     */
+    @Deprecated
+    FieldSchemaBuilder field(String fieldName, GenericSchema<?> genericSchema);

Review comment:
       Any reason why do you deprecated it? 




----------------------------------------------------------------
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