pinot icon indicating copy to clipboard operation
pinot copied to clipboard

Allow server to directly return the final aggregation result

Open Jackie-Jiang opened this issue 3 years ago • 0 comments

When there is only one server queried, we can calculate the final aggregation result on the server side, instead of serializing back the intermediate result (which can be huge for distinct_count, percentile etc.).

This PR adds a new query option serverReturnFinalResult to let the server directly return the final aggregation result. As a follow up, we may add a flag to the broker config to let the broker automatically add this query option when it is querying only one server.

Jackie-Jiang avatar Aug 31 '22 06:08 Jackie-Jiang