1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/demo/test520/groupByWiderAndWider.sql.ref.log
2016-01-06 14:08:59 -06:00

335 lines
18 KiB
Plaintext

--------------
select c_name8, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1
order by 2 desc
limit 10
--------------
+----------+----------+
| c_name8 | count(*) |
+----------+----------+
| Customer | 91248844 |
+----------+----------+
1 row in set (10.06 sec)
--------------
select calgetstats()
--------------
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-104308; CacheI/O-150273; BlocksTouched-150200; PartitionBlocksEliminated-248096; MsgBytesIn-42MB; MsgBytesOut-0MB; Mode-Distributed| 1297889432 158968 |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001451221 | 146 |
| Customer#001739956 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (15.62 sec)
--------------
select calgetstats()
--------------
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-1; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-157915; BlocksTouched-157915; PartitionBlocksEliminated-248096; MsgBytesIn-876MB; MsgBytesOut-0MB; Mode-Distributed| 1297889441 848246 |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name50, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name50 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002373421 | 147 |
| Customer#002079622 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (20.52 sec)
--------------
select calgetstats()
--------------
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-2; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-1492MB; MsgBytesOut-0MB; Mode-Distributed| 1297889457 473053 |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name100, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name100 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002373421 | 147 |
| Customer#002079622 | 147 |
| Customer#001451221 | 146 |
| Customer#001739956 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (32.90 sec)
--------------
select calgetstats()
--------------
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-4; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-2722MB; MsgBytesOut-0MB; Mode-Distributed| 1297889477 989298 |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name150, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name150 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#000820621 | 154 |
| Customer#002619520 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (44.25 sec)
--------------
select calgetstats()
--------------
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-6; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-3953MB; MsgBytesOut-0MB; Mode-Distributed| 1297889510 891378 |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name200, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name200 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (54.55 sec)
--------------
select calgetstats()
--------------
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-7; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-5183MB; MsgBytesOut-0MB; Mode-Distributed| 1297889555 154708 |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name250, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name250 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (1 min 5.79 sec)
--------------
select calgetstats()
--------------
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-10; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-6414MB; MsgBytesOut-0MB; Mode-Distributed| 1297889609 715760 |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name300, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name300 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (1 min 16.25 sec)
--------------
select calgetstats()
--------------
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-13; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-7644MB; MsgBytesOut-0MB; Mode-Distributed| 1297889675 518389 |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name400, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name400 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#002619520 | 154 |
| Customer#000820621 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (1 min 39.44 sec)
--------------
select calgetstats()
--------------
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-19; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-10106MB; MsgBytesOut-0MB; Mode-Distributed| 1297889751 776066 |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
--------------
select c_name1000, count(*)
from customer join lineorder on (lo_custkey = c_custkey)
where lo_orderdate <= 19921231
group by 1 order by 2 desc limit 10
--------------
+--------------------+----------+
| c_name1000 | count(*) |
+--------------------+----------+
| Customer#000109165 | 156 |
| Customer#000820621 | 154 |
| Customer#002619520 | 154 |
| Customer#002434015 | 153 |
| Customer#001088233 | 149 |
| Customer#002079622 | 147 |
| Customer#002373421 | 147 |
| Customer#001739956 | 146 |
| Customer#001451221 | 146 |
| Customer#002488138 | 145 |
+--------------------+----------+
10 rows in set (3 min 54.63 sec)
--------------
select calgetstats()
--------------
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| calgetstats() |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Stats: MaxMemPct-42; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-10285; CacheI/O-157911; BlocksTouched-157911; PartitionBlocksEliminated-248096; MsgBytesIn-24872MB; MsgBytesOut-0MB; Mode-Distributed| 1297889851 234074 |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
Bye