pinot
pinot copied to clipboard
Short circuit queries where no rows will be returned
- There are numerous types of queries where it is guaranteed that no rows will be returned. For instance - selection only queries with
LIMIT 0, group by aggregation queries withLIMIT 0, queries with a filter predicate that is always false, queries where there are 0 segments left after segment pruning etc. - Ideally, all these cases should be short circuited (i.e., no actual query execution should occur) and we should only return the data schema. This is currently done for some, but not all the cases.
- See https://github.com/apache/pinot/pull/13555#issuecomment-2214679736 for more details.
Can I take it?