pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pulsar] sijie opened a new pull request #3766: Support passing schema definition for JSON and AVRO schemas
Date Wed, 06 Mar 2019 09:34:26 GMT
sijie opened a new pull request #3766: Support passing schema definition for JSON and AVRO
URL: https://github.com/apache/pulsar/pull/3766
   Currently AVRO and Schema generated schemas from POJO directly.
   Sometime people would like to use pre-generated/defined schemas,
   so allow passing in schema definitions would clear the confusions
   on parsing schemas from POJO.
   - Abstract a common base class `StructSchema` for AVRO/PROTOBUF/JSON
   - Standarize on using avro schema for defining schema (we already did that. this change
only makes it clearer)
   - Add methods to pass schema definition for JSON and AVRO schemas
   We don't support passing schema definition for PROTOBUF. since we only supported generated
messages as POJO
   class for protobuf schema, and we generate schema definition from the generated messages.
it doesn't make sense
   to pass in a different schema definition.
   *Related Issues*: #3752 #3741 
   ### Does this pull request potentially affect one of the following parts:
   *If `yes` was chosen, please highlight the changes*
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (*yes*)
     - The schema: (*yes*)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   ### Documentation
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup issue for adding
the documentation

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:

With regards,
Apache Git Services

View raw message