You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case
If the query contains GROUP BY and either does not contain ORDER BY or contains ORDER BY that does not depend on aggregate functions and only possibly depend on aggregation keys and does not depend on non-deterministic functions or there is no aggregate functions, we should apply ORDER BY transformation with LIMIT on remote servers. If there is no ORDER BY but aggregate functions are present, add implicit ORDER BY keys.
This will help to send less amount of data over network and parallelize ORDER BY.
The text was updated successfully, but these errors were encountered:
alexey-milovidov
changed the title
Distributed GROUP BY with ORDER BY without aggregate functions.
Optimization for distributed GROUP BY with ORDER BY without aggregate functions.
Jan 25, 2020
Use case
If the query contains GROUP BY and either does not contain ORDER BY or contains ORDER BY that does not depend on aggregate functions and only possibly depend on aggregation keys and does not depend on non-deterministic functions or there is no aggregate functions, we should apply ORDER BY transformation with LIMIT on remote servers. If there is no ORDER BY but aggregate functions are present, add implicit ORDER BY keys.
This will help to send less amount of data over network and parallelize ORDER BY.
The text was updated successfully, but these errors were encountered: