mayankshriv edited a comment on issue #7060: URL: https://github.com/apache/incubator-pinot/issues/7060#issuecomment-871613503
Chatted with @atris offline, there's indeed a bailout that stops scanning records after we hit the record limit during the combine phase of distinct operator in the absence of order-by. Since there is no ordering specified, the engine bails out as soon as it collects enough docs as specified in the `LIMIT`. It is just a fluke that the results matched even though we didn't scan all records. For other use cases, early bailout in case of no order-by and small limit may result in incorrect results. -- 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