gaoran10 opened a new pull request #6325: KeyValue schema support for pulsar sql
URL: https://github.com/apache/pulsar/pull/6325
 
 
   Fixes #5560 
   
   ### Motivation
   
   Currently, the pulsar sql can't read the keyValue schema data.
   
   ### Modifications
   
   Add KeyValue schema support for pulsar sql. Add prefix ```key.``` for the 
key field name, add prefix ```value.``` for the value field name.
   
   ### Verifying this change
   
   This change added tests and can be verified as follows:
    - Added unit tests for keyValue schema handler
   
   ### Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (don't know)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (don't know)
   
   ### Documentation
   
   If the key uses the ```Schema.INT32``` schema, the field name is 
```key.__value__```
   
   if the key uses the ```Schema.JSON(User.class)```  schema, the field name is 
```key.name, key.age```
   
   If the value uses the ```Schema.INT32``` schema, the field name is 
```value.__value__```
   
   if the value uses the ```Schema.JSON(User.class)``` schema, the field name 
is ```value.name, value.age```
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to