-------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:22:55 | +---------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:22:55 | +---------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.10 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 2000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-11-30 | 1170.547900 | 10026 | | 2-HIGH | 1998-11-28 | 1167.794993 | 10122 | | 3-MEDIUM | 1998-11-30 | 1167.422881 | 9808 | | 4-NOT SPECIFIED | 1998-12-01 | 1169.019293 | 9984 | | 5-LOW | 1998-11-27 | 1170.356385 | 10129 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (45.39 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-2877747; CacheI/O-3115477; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-24MB; MsgBytesOut-0MB; Mode-Distributed| 1271838175 654186 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:23:40 | +---------------------+ 1 row in set (0.00 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 2000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-11-30 | 1170.547900 | 10026 | | 2-HIGH | 1998-11-28 | 1167.794993 | 10122 | | 3-MEDIUM | 1998-11-30 | 1167.422881 | 9808 | | 4-NOT SPECIFIED | 1998-12-01 | 1169.019293 | 9984 | | 5-LOW | 1998-11-27 | 1170.356385 | 10129 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (14.34 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-3123888; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-24MB; MsgBytesOut-0MB; Mode-Distributed| 1271838220 801826 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.19 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 4000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-11-30 | 1168.616435 | 20129 | | 2-HIGH | 1998-11-30 | 1168.018066 | 19898 | | 3-MEDIUM | 1998-12-01 | 1168.349010 | 19852 | | 4-NOT SPECIFIED | 1998-12-01 | 1168.406394 | 19950 | | 5-LOW | 1998-11-28 | 1169.799229 | 20147 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (39.78 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-2879249; CacheI/O-3115486; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-26MB; MsgBytesOut-0MB; Mode-Distributed| 1271838235 336356 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:24:35 | +---------------------+ 1 row in set (0.00 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 4000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-11-30 | 1168.616435 | 20129 | | 2-HIGH | 1998-11-30 | 1168.018066 | 19898 | | 3-MEDIUM | 1998-12-01 | 1168.349010 | 19852 | | 4-NOT SPECIFIED | 1998-12-01 | 1168.406394 | 19950 | | 5-LOW | 1998-11-28 | 1169.799229 | 20147 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (20.43 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-3123888; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-26MB; MsgBytesOut-0MB; Mode-Distributed| 1271838275 147216 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.18 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 6000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-12-01 | 1168.486197 | 30128 | | 2-HIGH | 1998-12-01 | 1168.579632 | 29921 | | 3-MEDIUM | 1998-12-01 | 1169.002335 | 29858 | | 4-NOT SPECIFIED | 1998-12-01 | 1168.179059 | 29815 | | 5-LOW | 1998-11-30 | 1169.435181 | 30112 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (42.73 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-2878787; CacheI/O-3115465; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-28MB; MsgBytesOut-0MB; Mode-Distributed| 1271838295 735626 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:25:38 | +---------------------+ 1 row in set (0.00 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 6000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-12-01 | 1168.486197 | 30128 | | 2-HIGH | 1998-12-01 | 1168.579632 | 29921 | | 3-MEDIUM | 1998-12-01 | 1169.002335 | 29858 | | 4-NOT SPECIFIED | 1998-12-01 | 1168.179059 | 29815 | | 5-LOW | 1998-11-30 | 1169.435181 | 30112 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (26.23 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-3123888; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-28MB; MsgBytesOut-0MB; Mode-Distributed| 1271838338 499259 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.20 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 8000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-12-01 | 1168.892737 | 40119 | | 2-HIGH | 1998-12-01 | 1168.145028 | 40067 | | 3-MEDIUM | 1998-12-01 | 1168.889421 | 40043 | | 4-NOT SPECIFIED | 1998-12-01 | 1168.149325 | 39755 | | 5-LOW | 1998-11-30 | 1169.237662 | 40223 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (46.76 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-2879216; CacheI/O-3115659; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-29MB; MsgBytesOut-0MB; Mode-Distributed| 1271838364 902830 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:26:51 | +---------------------+ 1 row in set (0.00 sec) -------------- select o_orderpriority, max(l_shipdate), avg(o_totalprice), count(*) from orders, lineitem where o_orderdate > '1997-08-01' and o_totalprice < 1365 and o_orderkey = l_orderkey and l_shipdate > '1997-08-01' and l_suppkey < 8000000 group by o_orderpriority order by o_orderpriority -------------- +-----------------+-----------------+-------------------+----------+ | o_orderpriority | max(l_shipdate) | avg(o_totalprice) | count(*) | +-----------------+-----------------+-------------------+----------+ | 1-URGENT | 1998-12-01 | 1168.892737 | 40119 | | 2-HIGH | 1998-12-01 | 1168.145028 | 40067 | | 3-MEDIUM | 1998-12-01 | 1168.889421 | 40043 | | 4-NOT SPECIFIED | 1998-12-01 | 1168.149325 | 39755 | | 5-LOW | 1998-11-30 | 1169.237662 | 40223 | +-----------------+-----------------+-------------------+----------+ 5 rows in set (30.70 sec) -------------- select calgetstats() -------------- +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-3123888; BlocksTouched-3123888; PartitionBlocksEliminated-3645440; MsgBytesIn-29MB; MsgBytesOut-0MB; Mode-Distributed| 1271838411 702022 | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:27:22 | +---------------------+ 1 row in set (0.00 sec) Bye