Skip to content

Commit 4afc943

Browse files
committed
FIX icw test from Foreign Scans
1 parent 001412b commit 4afc943

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

src/test/regress/expected/update_gp_optimizer.out

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -888,23 +888,26 @@ insert into from_table select i*1.5,i*2,i*3,'xx'||i,'yy'||i, i+1 from generate_s
888888
explain (costs off)
889889
update into_table set d=from_table.d, e=from_table.e, f=from_table.f from from_table
890890
where into_table.a=from_table.a and into_table.b=from_table.b and into_table.c=from_table.c;
891-
QUERY PLAN
892-
------------------------------------------------------------------------------------------------------------------------------------------------
891+
QUERY PLAN
892+
------------------------------------------------------------------------------------------------------------------------
893893
Update on into_table
894-
-> Result
895-
-> Redistribute Motion 3:3 (slice1; segments: 3)
896-
Hash Key: into_table_1.a, into_table_1.b, into_table_1.c
897-
-> Split
898-
-> Hash Join
899-
Hash Cond: ((into_table_1.a = from_table.a) AND (into_table_1.b = from_table.b) AND (into_table_1.c = from_table.c))
900-
-> Redistribute Motion 3:3 (slice2; segments: 3)
901-
Hash Key: into_table_1.a
902-
-> Dynamic Seq Scan on into_table into_table_1
903-
Number of partitions to scan: 4 (out of 4)
904-
-> Hash
905-
-> Seq Scan on from_table
906-
Optimizer: Pivotal Optimizer (GPORCA)
907-
(14 rows)
894+
Update on into_table_1_prt_1 into_table_1
895+
Update on into_table_1_prt_2 into_table_2
896+
Update on into_table_1_prt_3 into_table_3
897+
Update on into_table_1_prt_4 into_table_4
898+
-> Hash Join
899+
Hash Cond: ((into_table.a = from_table.a) AND (into_table.b = from_table.b) AND (into_table.c = from_table.c))
900+
-> Append
901+
-> Seq Scan on into_table_1_prt_1 into_table_1
902+
-> Seq Scan on into_table_1_prt_2 into_table_2
903+
-> Seq Scan on into_table_1_prt_3 into_table_3
904+
-> Seq Scan on into_table_1_prt_4 into_table_4
905+
-> Hash
906+
-> Redistribute Motion 3:3 (slice1; segments: 3)
907+
Hash Key: from_table.a, from_table.b, from_table.c
908+
-> Seq Scan on from_table
909+
Optimizer: Postgres query optimizer
910+
(17 rows)
908911

909912
update into_table set d=from_table.d, e=from_table.e, f=from_table.f from from_table
910913
where into_table.a=from_table.a and into_table.b=from_table.b and into_table.c=from_table.c;

src/test/regress/output/external_table_optimizer.source

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4978,13 +4978,13 @@ SELECT policytype, distkey FROM gp_distribution_policy WHERE localoid = 'part_ex
49784978

49794979
DROP TABLE part_root;
49804980
-- check logerrors value of pg_exttable
4981-
CREATE EXTERNAL TABLE ext_false (c INT)
4981+
CREATE EXTERNAL TABLE ext_false (c INT)
49824982
location ('file://@hostname@@abs_srcdir@/data/ext_fasle.tbl' )
49834983
FORMAT 'text' (delimiter '|');
4984-
CREATE EXTERNAL TABLE ext_true (c INT)
4984+
CREATE EXTERNAL TABLE ext_true (c INT)
49854985
location ('file://@hostname@@abs_srcdir@/data/ext_true.tbl' )
49864986
FORMAT 'text' (delimiter '|') LOG ERRORS SEGMENT REJECT LIMIT 100;
4987-
CREATE EXTERNAL TABLE ext_persistently (c INT)
4987+
CREATE EXTERNAL TABLE ext_persistently (c INT)
49884988
location ('file://@hostname@@abs_srcdir@/data/ext_persistently.tbl' )
49894989
FORMAT 'text' (delimiter '|') LOG ERRORS PERSISTENTLY SEGMENT REJECT LIMIT 100;
49904990
SELECT logerrors from pg_exttable a, pg_class b where a.reloid = b.oid and b.relname = 'ext_false';

0 commit comments

Comments
 (0)