amrishlal commented on issue #9660:
URL: https://github.com/apache/pinot/issues/9660#issuecomment-1291284815

   Empty result generated when number of segments selected is zero 
(`ServerQueryExecutorV1Impl.java`):
   
   ```
       if (numSelectedSegments == 0) {
         if (queryContext.isExplain()) {
           instanceResponse = 
getExplainResponseForNoMatchingSegment(numTotalSegments, queryContext);
         } else {
           instanceResponse =
               new 
InstanceResponseBlock(ResultsBlockUtils.buildEmptyQueryResults(queryContext), 
queryContext);
         }
       }
   ```
   
   > When no row selected, we can consider returning empty result table (no 
data schema, no row) in the broker response.
   
   Yes, I think this will work well from Pinot side.


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

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to