mirror of https://github.com/citusdata/citus.git
Handles EXPLAIN output diffs in PG15: HashAgg Leverage,alt. output
multi_select_distinct.sql Still not sure of the relevant PG commit Could be db0d67db2401eb6238ccc04c6407a4fd4f985832 but disabling enable_group_by_reordering didn't help.naisila/failure_pg15
parent
d37eb176db
commit
0825435787
|
@ -3,6 +3,9 @@
|
||||||
--
|
--
|
||||||
-- Tests select distinct, and select distinct on features.
|
-- Tests select distinct, and select distinct on features.
|
||||||
--
|
--
|
||||||
|
-- This test file has an alternative output because some HashAggregate
|
||||||
|
-- leverages in PG15 compared to PG13/PG14
|
||||||
|
--
|
||||||
ANALYZE lineitem_hash_part;
|
ANALYZE lineitem_hash_part;
|
||||||
-- function calls are supported
|
-- function calls are supported
|
||||||
SELECT DISTINCT l_orderkey, now() FROM lineitem_hash_part LIMIT 0;
|
SELECT DISTINCT l_orderkey, now() FROM lineitem_hash_part LIMIT 0;
|
||||||
|
@ -764,13 +767,14 @@ EXPLAIN (COSTS FALSE)
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> Limit
|
-> Limit
|
||||||
-> Unique
|
-> Sort
|
||||||
-> Group
|
Sort Key: l_orderkey, l_partkey
|
||||||
|
-> HashAggregate
|
||||||
Group Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
Group Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
||||||
-> Sort
|
-> HashAggregate
|
||||||
Sort Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
Group Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
||||||
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
||||||
(17 rows)
|
(18 rows)
|
||||||
|
|
||||||
-- check the plan if the hash aggreate is disabled. We expect to see only one
|
-- check the plan if the hash aggreate is disabled. We expect to see only one
|
||||||
-- aggregation node since group by columns guarantees the uniqueness.
|
-- aggregation node since group by columns guarantees the uniqueness.
|
||||||
|
@ -793,13 +797,14 @@ EXPLAIN (COSTS FALSE)
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> Limit
|
-> Limit
|
||||||
-> Unique
|
-> Sort
|
||||||
-> Group
|
Sort Key: l_orderkey, l_partkey
|
||||||
|
-> HashAggregate
|
||||||
Group Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
Group Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
||||||
-> Sort
|
-> HashAggregate
|
||||||
Sort Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
Group Key: l_orderkey, l_partkey, l_suppkey, l_linenumber, l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate, l_commitdate, l_receiptdate, l_shipinstruct, l_shipmode, l_comment
|
||||||
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
||||||
(16 rows)
|
(17 rows)
|
||||||
|
|
||||||
SET enable_hashagg TO on;
|
SET enable_hashagg TO on;
|
||||||
-- distinct on count distinct
|
-- distinct on count distinct
|
||||||
|
@ -972,12 +977,10 @@ EXPLAIN (COSTS FALSE)
|
||||||
Tasks Shown: One of 4
|
Tasks Shown: One of 4
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: l_orderkey
|
Group Key: l_orderkey
|
||||||
-> Sort
|
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
||||||
Sort Key: l_orderkey
|
(13 rows)
|
||||||
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
|
||||||
(15 rows)
|
|
||||||
|
|
||||||
-- check the plan if the hash aggreate is disabled.
|
-- check the plan if the hash aggreate is disabled.
|
||||||
SET enable_hashagg TO off;
|
SET enable_hashagg TO off;
|
||||||
|
@ -998,12 +1001,10 @@ EXPLAIN (COSTS FALSE)
|
||||||
Tasks Shown: One of 4
|
Tasks Shown: One of 4
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: l_orderkey
|
Group Key: l_orderkey
|
||||||
-> Sort
|
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
||||||
Sort Key: l_orderkey
|
(12 rows)
|
||||||
-> Seq Scan on lineitem_hash_part_360041 lineitem_hash_part
|
|
||||||
(14 rows)
|
|
||||||
|
|
||||||
SET enable_hashagg TO on;
|
SET enable_hashagg TO on;
|
||||||
-- distinct on non-partition column with aggregate
|
-- distinct on non-partition column with aggregate
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,6 +3,9 @@
|
||||||
--
|
--
|
||||||
-- Tests select distinct, and select distinct on features.
|
-- Tests select distinct, and select distinct on features.
|
||||||
--
|
--
|
||||||
|
-- This test file has an alternative output because some HashAggregate
|
||||||
|
-- leverages in PG15 compared to PG13/PG14
|
||||||
|
--
|
||||||
|
|
||||||
ANALYZE lineitem_hash_part;
|
ANALYZE lineitem_hash_part;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue