mirror of https://github.com/citusdata/citus.git
Stabilize test outputs
parent
abc84e6b2b
commit
d6cb88a73a
|
@ -34,6 +34,9 @@ BEGIN
|
||||||
RETURN result;
|
RETURN result;
|
||||||
END;
|
END;
|
||||||
$BODY$ LANGUAGE plpgsql;
|
$BODY$ LANGUAGE plpgsql;
|
||||||
|
-- VACUMM related tables to ensure test outputs are stable
|
||||||
|
VACUUM ANALYZE lineitem;
|
||||||
|
VACUUM ANALYZE orders;
|
||||||
-- Test Text format
|
-- Test Text format
|
||||||
EXPLAIN (COSTS FALSE, FORMAT TEXT)
|
EXPLAIN (COSTS FALSE, FORMAT TEXT)
|
||||||
SELECT l_quantity, count(*) count_quantity FROM lineitem
|
SELECT l_quantity, count(*) count_quantity FROM lineitem
|
||||||
|
@ -287,12 +290,13 @@ Limit
|
||||||
-> Limit
|
-> Limit
|
||||||
-> Sort
|
-> Sort
|
||||||
Sort Key: lineitem.l_quantity
|
Sort Key: lineitem.l_quantity
|
||||||
-> Hash Join
|
-> Merge Join
|
||||||
Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
|
Merge Cond: (orders.o_orderkey = lineitem.l_orderkey)
|
||||||
-> Seq Scan on lineitem_290001 lineitem
|
-> Index Scan using orders_pkey_290008 on orders_290008 orders
|
||||||
Filter: (l_quantity < 5.0)
|
-> Sort
|
||||||
-> Hash
|
Sort Key: lineitem.l_orderkey
|
||||||
-> Seq Scan on orders_290008 orders
|
-> Seq Scan on lineitem_290001 lineitem
|
||||||
|
Filter: (l_quantity < 5.0)
|
||||||
-- Test insert
|
-- Test insert
|
||||||
EXPLAIN (COSTS FALSE)
|
EXPLAIN (COSTS FALSE)
|
||||||
INSERT INTO lineitem VALUES(1,0);
|
INSERT INTO lineitem VALUES(1,0);
|
||||||
|
@ -314,11 +318,9 @@ Custom Scan (Citus Router)
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57638 dbname=regression
|
Node: host=localhost port=57638 dbname=regression
|
||||||
-> Update on lineitem_290000
|
-> Update on lineitem_290000
|
||||||
-> Bitmap Heap Scan on lineitem_290000
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000
|
||||||
Recheck Cond: (l_orderkey = 1)
|
Index Cond: (l_orderkey = 1)
|
||||||
Filter: (l_partkey = 0)
|
Filter: (l_partkey = 0)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000
|
|
||||||
Index Cond: (l_orderkey = 1)
|
|
||||||
-- Test delete
|
-- Test delete
|
||||||
EXPLAIN (COSTS FALSE)
|
EXPLAIN (COSTS FALSE)
|
||||||
DELETE FROM lineitem
|
DELETE FROM lineitem
|
||||||
|
@ -329,11 +331,9 @@ Custom Scan (Citus Router)
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57638 dbname=regression
|
Node: host=localhost port=57638 dbname=regression
|
||||||
-> Delete on lineitem_290000
|
-> Delete on lineitem_290000
|
||||||
-> Bitmap Heap Scan on lineitem_290000
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000
|
||||||
Recheck Cond: (l_orderkey = 1)
|
Index Cond: (l_orderkey = 1)
|
||||||
Filter: (l_partkey = 0)
|
Filter: (l_partkey = 0)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000
|
|
||||||
Index Cond: (l_orderkey = 1)
|
|
||||||
-- Test single-shard SELECT
|
-- Test single-shard SELECT
|
||||||
EXPLAIN (COSTS FALSE)
|
EXPLAIN (COSTS FALSE)
|
||||||
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5;
|
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5;
|
||||||
|
@ -342,10 +342,8 @@ Custom Scan (Citus Router)
|
||||||
Tasks Shown: All
|
Tasks Shown: All
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57637 dbname=regression
|
Node: host=localhost port=57637 dbname=regression
|
||||||
-> Bitmap Heap Scan on lineitem_290000 lineitem
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000 lineitem
|
||||||
Recheck Cond: (l_orderkey = 5)
|
Index Cond: (l_orderkey = 5)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000
|
|
||||||
Index Cond: (l_orderkey = 5)
|
|
||||||
SELECT true AS valid FROM explain_xml($$
|
SELECT true AS valid FROM explain_xml($$
|
||||||
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5$$);
|
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5$$);
|
||||||
t
|
t
|
||||||
|
@ -646,10 +644,8 @@ Custom Scan (Citus Router) (cost=0.00..0.00 rows=0 width=0)
|
||||||
Tasks Shown: All
|
Tasks Shown: All
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57637 dbname=regression
|
Node: host=localhost port=57637 dbname=regression
|
||||||
-> Bitmap Heap Scan on lineitem_290000 lineitem (cost=4.30..13.44 rows=3 width=18)
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000 lineitem (cost=0.28..11.83 rows=3 width=5)
|
||||||
Recheck Cond: (l_orderkey = 5)
|
Index Cond: (l_orderkey = 5)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000 (cost=0.00..4.30 rows=3 width=0)
|
|
||||||
Index Cond: (l_orderkey = 5)
|
|
||||||
PREPARE real_time_executor_query AS
|
PREPARE real_time_executor_query AS
|
||||||
SELECT avg(l_linenumber) FROM lineitem WHERE l_orderkey > 9030;
|
SELECT avg(l_linenumber) FROM lineitem WHERE l_orderkey > 9030;
|
||||||
EXPLAIN (COSTS FALSE) EXECUTE real_time_executor_query;
|
EXPLAIN (COSTS FALSE) EXECUTE real_time_executor_query;
|
||||||
|
@ -671,7 +667,5 @@ Custom Scan (Citus Router) (cost=0.00..0.00 rows=0 width=0)
|
||||||
Tasks Shown: All
|
Tasks Shown: All
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57637 dbname=regression
|
Node: host=localhost port=57637 dbname=regression
|
||||||
-> Bitmap Heap Scan on lineitem_290000 lineitem (cost=4.30..13.44 rows=3 width=18)
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000 lineitem (cost=0.28..11.83 rows=3 width=5)
|
||||||
Recheck Cond: (l_orderkey = 5)
|
Index Cond: (l_orderkey = 5)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000 (cost=0.00..4.30 rows=3 width=0)
|
|
||||||
Index Cond: (l_orderkey = 5)
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ BEGIN
|
||||||
RETURN result;
|
RETURN result;
|
||||||
END;
|
END;
|
||||||
$BODY$ LANGUAGE plpgsql;
|
$BODY$ LANGUAGE plpgsql;
|
||||||
|
-- VACUMM related tables to ensure test outputs are stable
|
||||||
|
VACUUM ANALYZE lineitem;
|
||||||
|
VACUUM ANALYZE orders;
|
||||||
-- Test Text format
|
-- Test Text format
|
||||||
EXPLAIN (COSTS FALSE, FORMAT TEXT)
|
EXPLAIN (COSTS FALSE, FORMAT TEXT)
|
||||||
SELECT l_quantity, count(*) count_quantity FROM lineitem
|
SELECT l_quantity, count(*) count_quantity FROM lineitem
|
||||||
|
@ -266,12 +269,13 @@ Limit
|
||||||
-> Limit
|
-> Limit
|
||||||
-> Sort
|
-> Sort
|
||||||
Sort Key: lineitem.l_quantity
|
Sort Key: lineitem.l_quantity
|
||||||
-> Hash Join
|
-> Merge Join
|
||||||
Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
|
Merge Cond: (orders.o_orderkey = lineitem.l_orderkey)
|
||||||
-> Seq Scan on lineitem_290001 lineitem
|
-> Index Scan using orders_pkey_290008 on orders_290008 orders
|
||||||
Filter: (l_quantity < 5.0)
|
-> Sort
|
||||||
-> Hash
|
Sort Key: lineitem.l_orderkey
|
||||||
-> Seq Scan on orders_290008 orders
|
-> Seq Scan on lineitem_290001 lineitem
|
||||||
|
Filter: (l_quantity < 5.0)
|
||||||
-- Test insert
|
-- Test insert
|
||||||
EXPLAIN (COSTS FALSE)
|
EXPLAIN (COSTS FALSE)
|
||||||
INSERT INTO lineitem VALUES(1,0);
|
INSERT INTO lineitem VALUES(1,0);
|
||||||
|
@ -293,11 +297,9 @@ Custom Scan (Citus Router)
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57638 dbname=regression
|
Node: host=localhost port=57638 dbname=regression
|
||||||
-> Update on lineitem_290000
|
-> Update on lineitem_290000
|
||||||
-> Bitmap Heap Scan on lineitem_290000
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000
|
||||||
Recheck Cond: (l_orderkey = 1)
|
Index Cond: (l_orderkey = 1)
|
||||||
Filter: (l_partkey = 0)
|
Filter: (l_partkey = 0)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000
|
|
||||||
Index Cond: (l_orderkey = 1)
|
|
||||||
-- Test delete
|
-- Test delete
|
||||||
EXPLAIN (COSTS FALSE)
|
EXPLAIN (COSTS FALSE)
|
||||||
DELETE FROM lineitem
|
DELETE FROM lineitem
|
||||||
|
@ -308,11 +310,9 @@ Custom Scan (Citus Router)
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57638 dbname=regression
|
Node: host=localhost port=57638 dbname=regression
|
||||||
-> Delete on lineitem_290000
|
-> Delete on lineitem_290000
|
||||||
-> Bitmap Heap Scan on lineitem_290000
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000
|
||||||
Recheck Cond: (l_orderkey = 1)
|
Index Cond: (l_orderkey = 1)
|
||||||
Filter: (l_partkey = 0)
|
Filter: (l_partkey = 0)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000
|
|
||||||
Index Cond: (l_orderkey = 1)
|
|
||||||
-- Test single-shard SELECT
|
-- Test single-shard SELECT
|
||||||
EXPLAIN (COSTS FALSE)
|
EXPLAIN (COSTS FALSE)
|
||||||
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5;
|
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5;
|
||||||
|
@ -321,10 +321,8 @@ Custom Scan (Citus Router)
|
||||||
Tasks Shown: All
|
Tasks Shown: All
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57637 dbname=regression
|
Node: host=localhost port=57637 dbname=regression
|
||||||
-> Bitmap Heap Scan on lineitem_290000 lineitem
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000 lineitem
|
||||||
Recheck Cond: (l_orderkey = 5)
|
Index Cond: (l_orderkey = 5)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000
|
|
||||||
Index Cond: (l_orderkey = 5)
|
|
||||||
SELECT true AS valid FROM explain_xml($$
|
SELECT true AS valid FROM explain_xml($$
|
||||||
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5$$);
|
SELECT l_quantity FROM lineitem WHERE l_orderkey = 5$$);
|
||||||
t
|
t
|
||||||
|
@ -617,10 +615,8 @@ Custom Scan (Citus Router) (cost=0.00..0.00 rows=0 width=0)
|
||||||
Tasks Shown: All
|
Tasks Shown: All
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57637 dbname=regression
|
Node: host=localhost port=57637 dbname=regression
|
||||||
-> Bitmap Heap Scan on lineitem_290000 lineitem (cost=4.30..13.44 rows=3 width=18)
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000 lineitem (cost=0.28..11.83 rows=3 width=5)
|
||||||
Recheck Cond: (l_orderkey = 5)
|
Index Cond: (l_orderkey = 5)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000 (cost=0.00..4.30 rows=3 width=0)
|
|
||||||
Index Cond: (l_orderkey = 5)
|
|
||||||
PREPARE real_time_executor_query AS
|
PREPARE real_time_executor_query AS
|
||||||
SELECT avg(l_linenumber) FROM lineitem WHERE l_orderkey > 9030;
|
SELECT avg(l_linenumber) FROM lineitem WHERE l_orderkey > 9030;
|
||||||
EXPLAIN (COSTS FALSE) EXECUTE real_time_executor_query;
|
EXPLAIN (COSTS FALSE) EXECUTE real_time_executor_query;
|
||||||
|
@ -642,7 +638,5 @@ Custom Scan (Citus Router) (cost=0.00..0.00 rows=0 width=0)
|
||||||
Tasks Shown: All
|
Tasks Shown: All
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=57637 dbname=regression
|
Node: host=localhost port=57637 dbname=regression
|
||||||
-> Bitmap Heap Scan on lineitem_290000 lineitem (cost=4.30..13.44 rows=3 width=18)
|
-> Index Scan using lineitem_pkey_290000 on lineitem_290000 lineitem (cost=0.28..11.83 rows=3 width=5)
|
||||||
Recheck Cond: (l_orderkey = 5)
|
Index Cond: (l_orderkey = 5)
|
||||||
-> Bitmap Index Scan on lineitem_pkey_290000 (cost=0.00..4.30 rows=3 width=0)
|
|
||||||
Index Cond: (l_orderkey = 5)
|
|
||||||
|
|
|
@ -23,5 +23,3 @@ ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 290000;
|
||||||
\copy lineitem_hash_part FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
\copy lineitem_hash_part FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
||||||
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.1.data' with delimiter '|'
|
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.1.data' with delimiter '|'
|
||||||
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.2.data' with delimiter '|'
|
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.2.data' with delimiter '|'
|
||||||
|
|
||||||
VACUUM ANALYZE;
|
|
||||||
|
|
|
@ -13,5 +13,3 @@ ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 280000;
|
||||||
\copy customer FROM '@abs_srcdir@/data/customer.2.data' with delimiter '|'
|
\copy customer FROM '@abs_srcdir@/data/customer.2.data' with delimiter '|'
|
||||||
\copy customer FROM '@abs_srcdir@/data/customer.3.data' with delimiter '|'
|
\copy customer FROM '@abs_srcdir@/data/customer.3.data' with delimiter '|'
|
||||||
\copy part FROM '@abs_srcdir@/data/part.more.data' with delimiter '|'
|
\copy part FROM '@abs_srcdir@/data/part.more.data' with delimiter '|'
|
||||||
|
|
||||||
VACUUM ANALYZE;
|
|
||||||
|
|
|
@ -447,7 +447,8 @@ SELECT
|
||||||
t_custkey, r_custkey
|
t_custkey, r_custkey
|
||||||
FROM
|
FROM
|
||||||
multi_outer_join_right_reference FULL JOIN
|
multi_outer_join_right_reference FULL JOIN
|
||||||
multi_outer_join_third_reference ON (t_custkey = r_custkey);
|
multi_outer_join_third_reference ON (t_custkey = r_custkey)
|
||||||
|
ORDER BY 1;
|
||||||
|
|
||||||
-- DROP unused tables to clean up workspace
|
-- DROP unused tables to clean up workspace
|
||||||
DROP TABLE multi_outer_join_left_hash;
|
DROP TABLE multi_outer_join_left_hash;
|
||||||
|
|
|
@ -19,6 +19,3 @@ ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 290000;
|
||||||
\copy lineitem_hash_part FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
\copy lineitem_hash_part FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'
|
||||||
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.1.data' with delimiter '|'
|
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.1.data' with delimiter '|'
|
||||||
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.2.data' with delimiter '|'
|
\copy orders_hash_part FROM '@abs_srcdir@/data/orders.2.data' with delimiter '|'
|
||||||
VACUUM ANALYZE;
|
|
||||||
WARNING: not propagating VACUUM command to worker nodes
|
|
||||||
HINT: Provide a specific table in order to VACUUM distributed tables.
|
|
||||||
|
|
|
@ -8,6 +8,3 @@ ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 280000;
|
||||||
\copy customer FROM '@abs_srcdir@/data/customer.2.data' with delimiter '|'
|
\copy customer FROM '@abs_srcdir@/data/customer.2.data' with delimiter '|'
|
||||||
\copy customer FROM '@abs_srcdir@/data/customer.3.data' with delimiter '|'
|
\copy customer FROM '@abs_srcdir@/data/customer.3.data' with delimiter '|'
|
||||||
\copy part FROM '@abs_srcdir@/data/part.more.data' with delimiter '|'
|
\copy part FROM '@abs_srcdir@/data/part.more.data' with delimiter '|'
|
||||||
VACUUM ANALYZE;
|
|
||||||
WARNING: not propagating VACUUM command to worker nodes
|
|
||||||
HINT: Provide a specific table in order to VACUUM distributed tables.
|
|
||||||
|
|
|
@ -798,9 +798,20 @@ SELECT
|
||||||
t_custkey, r_custkey
|
t_custkey, r_custkey
|
||||||
FROM
|
FROM
|
||||||
multi_outer_join_right_reference FULL JOIN
|
multi_outer_join_right_reference FULL JOIN
|
||||||
multi_outer_join_third_reference ON (t_custkey = r_custkey);
|
multi_outer_join_third_reference ON (t_custkey = r_custkey)
|
||||||
|
ORDER BY 1;
|
||||||
t_custkey | r_custkey
|
t_custkey | r_custkey
|
||||||
-----------+-----------
|
-----------+-----------
|
||||||
|
1 |
|
||||||
|
2 |
|
||||||
|
3 |
|
||||||
|
4 |
|
||||||
|
5 |
|
||||||
|
6 |
|
||||||
|
7 |
|
||||||
|
8 |
|
||||||
|
9 |
|
||||||
|
10 |
|
||||||
11 | 11
|
11 | 11
|
||||||
12 | 12
|
12 | 12
|
||||||
13 | 13
|
13 | 13
|
||||||
|
@ -821,16 +832,6 @@ FROM
|
||||||
28 | 28
|
28 | 28
|
||||||
29 | 29
|
29 | 29
|
||||||
30 | 30
|
30 | 30
|
||||||
10 |
|
|
||||||
2 |
|
|
||||||
5 |
|
|
||||||
8 |
|
|
||||||
6 |
|
|
||||||
4 |
|
|
||||||
1 |
|
|
||||||
3 |
|
|
||||||
9 |
|
|
||||||
7 |
|
|
||||||
(30 rows)
|
(30 rows)
|
||||||
|
|
||||||
-- DROP unused tables to clean up workspace
|
-- DROP unused tables to clean up workspace
|
||||||
|
|
|
@ -36,6 +36,10 @@ BEGIN
|
||||||
END;
|
END;
|
||||||
$BODY$ LANGUAGE plpgsql;
|
$BODY$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
|
-- VACUMM related tables to ensure test outputs are stable
|
||||||
|
VACUUM ANALYZE lineitem;
|
||||||
|
VACUUM ANALYZE orders;
|
||||||
|
|
||||||
-- Test Text format
|
-- Test Text format
|
||||||
EXPLAIN (COSTS FALSE, FORMAT TEXT)
|
EXPLAIN (COSTS FALSE, FORMAT TEXT)
|
||||||
SELECT l_quantity, count(*) count_quantity FROM lineitem
|
SELECT l_quantity, count(*) count_quantity FROM lineitem
|
||||||
|
|
Loading…
Reference in New Issue