I noted some systems ignore order by in a from subquery or at least when it is not used with limit.
https://mariadb.com/kb/en/library/why-is-order-by-in-a-from-subquery-ignored/
Some more cases can benefit from it in addition to https://github.com/prestosql/presto/issues/759 mentioned by @Praveen2112
When outer query and inner query are both aggregation, it is hard to parallel outer query if we want to keep the ordering of inner query.
Sounds good, would like to work on this?
@kokosing I'd like to work on it !
@kokosing @hustnn I already have implemented a solution for other issue, which fixes this. Let me share it
cool. go ahead.
Thanks, this is the PR https://github.com/prestosql/presto/pull/810
Solved in Presto 312. Quite fast !
Most helpful comment
Sounds good, would like to work on this?