KKcorps opened a new issue #8437:
URL: https://github.com/apache/pinot/issues/8437


   Currently, for a query, broker can only return JSON response. However, for 
better performance on client side, it might be desirable to get response in a 
compact, fast, binary format such as Avro, ProtoBuf, FlatBuffers etc. 
   
   There are two changes that can be done to support this request - 
   
   * Create a gRPC client for existing gRPC broker service and provide it to 
users.
   
   * Allow a `format` parameter to be passed in `/query` API and return 
response in the specified format.
   
   ```
   curl --location --request POST 'http://localhost:8000/query/sql' \
   --header 'Content-Type: application/json' \
   --data-raw '{"sql" : "SELECT * FROM baseballStats LIMIT 10",
    "format" : "avro"
   }'
   ```
   
   This will reduce the deserialization cost on the client end. 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


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

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to