Open sajjad-moradi opened 3 years ago
This happens when all the segments are pruned out, and Pinot server short-circuits the query to directly return without checking the schema. We should just not return the schema when there is no record returned.
Non-empty results (correct types):
Empty results (incorrect types):
This part of the code needs to be changed: https://github.com/apache/incubator-pinot/blob/master/pinot-core/src/main/java/org/apache/pinot/core/common/datatable/DataTableUtils.java#L121