vvivekiyer commented on PR #13831:
URL: https://github.com/apache/pinot/pull/13831#issuecomment-2294950833

   @Jackie-Jiang Sure, I can address it. 
   
   We have two options to solve it: 
   1. If all segments are pruned on broker, send the query to 1 server with 1 
segment ( with optimization to not send for aggregation only queries) . The 
code change already made in this PR will help return the correct schema. This 
will automatically handle deriving schema types for group-by, select, and 
transform result types. This will add some overhead to these empty queries but 
should be negligle.  
   
   2. Construct an empty result-table and derive the data-types for the query 
using schema. For transform types, would need to look into how to get the type. 
   
   I'm thinking of going with option (1). Thoughts? 
   
   Additionally a followup could be to add a broker-side LIMIT_0_PRUNER that 
will help short-circuit faster instead of routing queries to all servers. 


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