Open jangorecki opened 8 years ago
The example query you have isn't affected by ordering (ideally the optimizer should remove it). Can you give a real example so we can better understand what you need?
I need to materialise sort query results, or get as close to materialising it as I can. I need to measure time of sorting only (or as close to "only" as possible), and not interfaces, jdbc drivers or speed of printing results to console - thus wrapped into count(*)
- for fair comparison. According to my tests optimizer still do sort in this case, exactly as I need.
@jangorecki Do you still have any questions regarding sorting in Presto, or can we close this issue?
@cawallin I am still interested in measuring time of ORDER BY in presto. If optimizer now skips sorting for COUNT outer query then I would expect to have a query hint to at least have an option to measure ORDER BY timing. Otherwise presto will be marked as not capable to measure this operation in benchmark reports.
You can try inserting into the blackhole connector, which is as if piping the results to /dev/null
. For example:
create table blackhole.default.foo as select l_orderkey from lineitem order by l_orderkey;
That will add a little bit of overhead, but the impact will be negligible.
We should eliminate it for create table, too.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
I think it should not be closed, stale is still not resolved
This issue has been automatically marked as stale because it has not had any activity in the last 2 years. If you feel that this issue is important, just comment and the stale tag will be removed; otherwise it will be closed in 7 days. This is an attempt to ensure that our open issues remain valuable and relevant so that we can keep track of what needs to be done and prioritize the right things.
quite the same as 2 years ago
I have table of 5e9 rows, I read in a faq that it is better to avoid order by, but is there anything I could try to overcome current query failure?
My mem settings
v0.150