comphead commented on issue #13904:
URL: https://github.com/apache/datafusion/issues/13904#issuecomment-2564417913
@TheBuilderJR thanks for opening the issue and please let us know if
anything still needed. as @ozankabak correctly mentioned the if there is no top
level ordering the engine cannot guarantee the final order.
The LIMIT clause gets evaluated after the ORDER clause, so if you rewrite
your query
```
SELECT * FROM (
SELECT
session.access_token,
COUNT(1) as c
FROM quizchat_chats
GROUP BY session.access_token
) AS query ORDER BY c LIMIT 10000
``` it should work
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]