vvivekiyer opened a new pull request, #13831: URL: https://github.com/apache/pinot/pull/13831
When all segments are pruned on the server, we construct a [empty responseBlock](https://github.com/apache/pinot/blob/8603164cc646dcb4bc2a6ead51cc9ad37441fda7/pinot-core/src/main/java/org/apache/pinot/core/query/executor/ServerQueryExecutorV1Impl.java#L377) . As this response block is constructed without access to segment data, we default to STRING as the datatype for the column - [here is the code link](https://github.com/apache/pinot/blob/8603164cc646dcb4bc2a6ead51cc9ad37441fda7/pinot-core/src/main/java/org/apache/pinot/core/operator/blocks/results/ResultsBlockUtils.java#L66) . This problem does not exist for pure Aggregation queries. This PR fixes that by just processing one segment. Added tests to verify the code changes. -- 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