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
347 lines
16 KiB
Plaintext
347 lines
16 KiB
Plaintext
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:12 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:12 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 200000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (2.71 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-159182; CacheI/O-150744; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:14 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 200000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.89 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-147918; CacheI/O-150739; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.02 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 400000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.93 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-154062; CacheI/O-150744; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.01 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:18 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 400000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.81 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-138190; CacheI/O-150731; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.02 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 600000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.86 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-157134; CacheI/O-150744; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:22 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 600000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.81 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-149453; CacheI/O-150743; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select calflushcache()
|
|
--------------
|
|
|
|
+-----------------+
|
|
| calflushcache() |
|
|
+-----------------+
|
|
| 0 |
|
|
+-----------------+
|
|
1 row in set (0.02 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 800000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.96 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-155086; CacheI/O-150744; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:26 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*)
|
|
from orders, lineitem
|
|
where o_orderdate > '1998-08-01' and o_totalprice < 1365
|
|
and o_orderkey = l_orderkey
|
|
and l_shipdate > '1998-08-01' and l_suppkey < 800000
|
|
group by o_orderpriority
|
|
order by o_orderpriority
|
|
--------------
|
|
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
| 1-URGENT | 1998-10-06 | 1154.100000 | 100 |
|
|
+-----------------+-----------------+-------------------+----------+
|
|
1 row in set (1.83 sec)
|
|
|
|
--------------
|
|
select calgetstats()
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| calgetstats() |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-150478; CacheI/O-150743; BlocksTouched-150641; PartitionBlocksEliminated-651; MsgBytesIn-988KB; MsgBytesOut-14KB; Mode-Distributed |
|
|
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
--------------
|
|
select now()
|
|
--------------
|
|
|
|
+---------------------+
|
|
| now() |
|
|
+---------------------+
|
|
| 2014-11-19 16:29:27 |
|
|
+---------------------+
|
|
1 row in set (0.00 sec)
|
|
|
|
Bye
|