apache / pinot

Apache Pinot - A realtime distributed OLAP datastore
https://pinot.apache.org/
Apache License 2.0
5.17k stars 1.21k forks source link

Queries completely pruned by the broker should still return a result table #13057

Open jadami10 opened 2 weeks ago

jadami10 commented 2 weeks ago

If you send a query to Pinot where all the segments are pruned by the broker, the response from Pinot does not contain resultTable. Meaning it does not have the schema, data types, or even empty rows. This is non-intuitive to Pinot users. Especially since if you send a query that makes it to the servers but prunes every segment or matches no documents, Pinot returns the schema, column names, and an empty rows variable.