Presto: Ignore order by in a from subquery

Created on 23 May 2019  路  6Comments  路  Source: prestosql/presto

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.

Most helpful comment

Sounds good, would like to work on this?

All 6 comments

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.

Solved in Presto 312. Quite fast !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChethanUK picture ChethanUK  路  4Comments

lxynov picture lxynov  路  4Comments

jiangzhx picture jiangzhx  路  5Comments

lxynov picture lxynov  路  5Comments

anismiles picture anismiles  路  3Comments