提交 ed9b9eea 编写于 作者: H Hans Zeller

Fix plan difference in gporca regression test

上级 87fef901
...@@ -12337,40 +12337,43 @@ SELECT DISTINCT L1.c, L1.lid ...@@ -12337,40 +12337,43 @@ SELECT DISTINCT L1.c, L1.lid
FROM t55 L1 CROSS JOIN META FROM t55 L1 CROSS JOIN META
WHERE L1.lid = META.LOAD_ID; WHERE L1.lid = META.LOAD_ID;
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause. Creating a NULL policy entry. NOTICE: Table doesn't have 'DISTRIBUTED BY' clause. Creating a NULL policy entry.
QUERY PLAN QUERY PLAN
---------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------
Result (cost=0.00..0.00 rows=0 width=0) Result (cost=0.00..0.00 rows=0 width=0)
Output: c, lid Output: c, lid
-> Result (cost=0.00..437.37 rows=134 width=8) -> Result (cost=0.00..431.10 rows=1 width=8)
Output: c, lid, 1 Output: c, lid, 1
-> Redistribute Motion 3:3 (slice2; segments: 3) (cost=0.00..431.12 rows=134 width=8) -> Redistribute Motion 3:3 (slice2; segments: 3) (cost=0.00..431.08 rows=1 width=8)
Output: c, lid Output: c, lid
-> HashAggregate (cost=0.00..431.12 rows=134 width=8) -> GroupAggregate (cost=0.00..431.08 rows=1 width=8)
Output: c, lid Output: c, lid
Group Key: t55.c, t55.lid Group Key: t55.c, t55.lid
-> Hash Join (cost=0.00..431.08 rows=134 width=8) -> Sort (cost=0.00..431.08 rows=1 width=8)
Output: c, lid Output: c, lid
Hash Cond: (t55.lid = pg_catalog.int4in(unknownout("outer".load_id), 23::oid, (-1))) Sort Key: t55.c, t55.lid
-> Redistribute Motion 3:3 (slice1; segments: 3) (cost=0.00..431.02 rows=334 width=8) -> Hash Join (cost=0.00..431.08 rows=1 width=8)
Output: c, lid Output: c, lid
Hash Key: lid Hash Cond: (t55.lid = pg_catalog.int4in(unknownout("outer".load_id), 23::oid, (-1)))
-> Seq Scan on orca.t55 (cost=0.00..431.01 rows=334 width=8) -> Redistribute Motion 3:3 (slice1; segments: 3) (cost=0.00..431.02 rows=334 width=8)
Output: c, lid Output: c, lid
-> Hash (cost=0.00..0.00 rows=1 width=8) Hash Key: lid
Output: load_id -> Seq Scan on orca.t55 (cost=0.00..431.01 rows=334 width=8)
-> Result (cost=0.00..0.00 rows=1 width=8) Output: c, lid
-> Hash (cost=0.00..0.00 rows=1 width=8)
Output: load_id Output: load_id
-> Result (cost=0.00..0.00 rows=1 width=8) -> Result (cost=0.00..0.00 rows=1 width=8)
Output: load_id, pg_catalog.int4in(unknownout(load_id), 23::oid, (-1)) Output: load_id
-> Result (cost=0.00..0.00 rows=1 width=8) -> Result (cost=0.00..0.00 rows=1 width=8)
Output: load_id Output: load_id, pg_catalog.int4in(unknownout(load_id), 23::oid, (-1))
-> Result (cost=0.00..0.00 rows=1 width=8) -> Result (cost=0.00..0.00 rows=1 width=8)
Output: '2020-01-01', '99' Output: load_id
-> Result (cost=0.00..0.00 rows=1 width=1) -> Result (cost=0.00..0.00 rows=1 width=8)
Output: true Output: '2020-01-01', '99'
-> Result (cost=0.00..0.00 rows=1 width=1)
Output: true
Optimizer: Pivotal Optimizer (GPORCA) Optimizer: Pivotal Optimizer (GPORCA)
Settings: optimizer=on, optimizer_cte_inlining_bound=1000, optimizer_join_order=query, optimizer_metadata_caching=on Settings: optimizer=on, optimizer_cte_inlining_bound=1000, optimizer_join_order=query, optimizer_metadata_caching=on
(31 rows) (34 rows)
CREATE TABLE TP AS CREATE TABLE TP AS
WITH META AS (SELECT '2020-01-01' AS VALID_DT, '99' AS LOAD_ID) WITH META AS (SELECT '2020-01-01' AS VALID_DT, '99' AS LOAD_ID)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册