You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-17 09:41:06 +03:00
463 lines
21 KiB
Plaintext
463 lines
21 KiB
Plaintext
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:08 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:08 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.03 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1992-03-09'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 400 | 54547870.00 | 9973.875000 |
|
|
| 1 | 200 | 29753130.00 | 9979.710000 |
|
|
| 2 | 600 | 87737033.00 | 9983.083333 |
|
|
| 3 | 700 | 150294407.00 | 9983.275714 |
|
|
+-------------+----------+--------------+----------------+
|
|
4 rows in set (0.44 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-32406; CacheI/O-20143; BlocksTouched-20102; PartitionBlocksEliminated-0; MsgBytesIn-244KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:09 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1992-03-09'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 400 | 54547870.00 | 9973.875000 |
|
|
| 1 | 200 | 29753130.00 | 9979.710000 |
|
|
| 2 | 600 | 87737033.00 | 9983.083333 |
|
|
| 3 | 700 | 150294407.00 | 9983.275714 |
|
|
+-------------+----------+--------------+----------------+
|
|
4 rows in set (0.23 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-20102; BlocksTouched-20102; PartitionBlocksEliminated-0; MsgBytesIn-244KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.01 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1992-11-16'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 2200 | 282786704.00 | 9980.552727 |
|
|
| 1 | 1800 | 260708134.00 | 9973.338889 |
|
|
| 2 | 3900 | 611713850.00 | 9981.307949 |
|
|
| 3 | 2500 | 439502849.00 | 9986.219200 |
|
|
| 4 | 1200 | 187702853.00 | 9981.550000 |
|
|
+-------------+----------+--------------+----------------+
|
|
5 rows in set (0.41 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-32406; CacheI/O-25909; BlocksTouched-25862; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:09 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1992-08-16'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 1800 | 223884368.00 | 9982.036667 |
|
|
| 1 | 1200 | 181187579.00 | 9971.580000 |
|
|
| 2 | 2800 | 441181714.00 | 9980.027857 |
|
|
| 3 | 1800 | 355198338.00 | 9985.596111 |
|
|
| 4 | 1000 | 155017411.00 | 9981.170000 |
|
|
+-------------+----------+--------------+----------------+
|
|
5 rows in set (0.21 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-24182; BlocksTouched-24182; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.01 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1993-04-26'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 3000 | 397229226.00 | 9982.627000 |
|
|
| 1 | 2400 | 332045632.00 | 9972.077500 |
|
|
| 2 | 5800 | 891411928.00 | 9982.487931 |
|
|
| 3 | 4300 | 690072379.00 | 9984.166047 |
|
|
| 4 | 2500 | 275959143.00 | 9980.819600 |
|
|
+-------------+----------+--------------+----------------+
|
|
5 rows in set (0.43 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-32021; CacheI/O-27922; BlocksTouched-27862; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:10 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1992-11-26'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 2300 | 303943720.00 | 9980.913043 |
|
|
| 1 | 1800 | 260708134.00 | 9973.338889 |
|
|
| 2 | 4000 | 634129851.00 | 9981.141750 |
|
|
| 3 | 2500 | 439502849.00 | 9986.219200 |
|
|
| 4 | 1400 | 198941944.00 | 9980.606429 |
|
|
+-------------+----------+--------------+----------------+
|
|
5 rows in set (0.23 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-25942; BlocksTouched-25942; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.01 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1993-10-03'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+---------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+---------------+----------------+
|
|
| 0 | 3800 | 462938658.00 | 9983.825263 |
|
|
| 1 | 3200 | 430579237.00 | 9970.953438 |
|
|
| 2 | 7600 | 1184540120.00 | 9983.232632 |
|
|
| 3 | 5900 | 894758362.00 | 9984.130847 |
|
|
| 4 | 4000 | 532789668.00 | 9979.968750 |
|
|
+-------------+----------+---------------+----------------+
|
|
5 rows in set (0.46 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-32406; CacheI/O-29343; BlocksTouched-29302; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:11 |
|
|
+---------------------+
|
|
1 row in set (0.01 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1993-01-03'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+--------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+--------------+----------------+
|
|
| 0 | 2400 | 306752528.00 | 9981.243333 |
|
|
| 1 | 2000 | 275598897.00 | 9973.289000 |
|
|
| 2 | 4600 | 728542731.00 | 9981.740000 |
|
|
| 3 | 3100 | 489980794.00 | 9985.460968 |
|
|
| 4 | 1800 | 228866899.00 | 9979.375556 |
|
|
+-------------+----------+--------------+----------------+
|
|
5 rows in set (0.23 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-26502; BlocksTouched-26502; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1993-08-13'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+---------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+---------------+----------------+
|
|
| 0 | 3400 | 435685414.00 | 9984.117059 |
|
|
| 1 | 3000 | 413473519.00 | 9970.411333 |
|
|
| 2 | 7000 | 1088168675.00 | 9983.044000 |
|
|
| 3 | 5300 | 812665612.00 | 9984.241509 |
|
|
| 4 | 3800 | 486472972.00 | 9980.265789 |
|
|
+-------------+----------+---------------+----------------+
|
|
5 rows in set (0.46 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-32406; CacheI/O-29029; BlocksTouched-28982; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:11 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal)
|
|
from customer, orders
|
|
where c_acctbal > 9963 and c_nationkey < 5
|
|
and o_custkey = c_custkey
|
|
and o_orderdate <= '1993-08-13'
|
|
group by c_nationkey
|
|
order by 1
|
|
--------------
|
|
|
|
+-------------+----------+---------------+----------------+
|
|
| c_nationkey | count(*) | Revenue | avg(c_acctbal) |
|
|
+-------------+----------+---------------+----------------+
|
|
| 0 | 3400 | 435685414.00 | 9984.117059 |
|
|
| 1 | 3000 | 413473519.00 | 9970.411333 |
|
|
| 2 | 7000 | 1088168675.00 | 9983.044000 |
|
|
| 3 | 5300 | 812665612.00 | 9984.241509 |
|
|
| 4 | 3800 | 486472972.00 | 9980.265789 |
|
|
+-------------+----------+---------------+----------------+
|
|
5 rows in set (0.27 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-28982; BlocksTouched-28982; PartitionBlocksEliminated-0; MsgBytesIn-246KB; MsgBytesOut-35KB; Mode-Distributed |
|
|
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:12 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
Bye
|