Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
foreyes committed May 31, 2024
1 parent 918fb82 commit 00835ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
4 changes: 0 additions & 4 deletions src/test/regress/input/dispatch.source
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,6 @@ set optimizer=off;
--gang reused
create table t_create_gang_time(tc1 int,tc2 int);

--1-gang reused
select * from t_create_gang_time where tc1=1;
explain analyze select * from t_create_gang_time where tc1=1;

--n-gang reused and 1-gang is created.
select * from t_create_gang_time t1, t_create_gang_time t2 where t1.tc1=2;

Expand Down
22 changes: 0 additions & 22 deletions src/test/regress/output/dispatch.source
Original file line number Diff line number Diff line change
Expand Up @@ -933,28 +933,6 @@ create table t_create_gang_time(tc1 int,tc2 int);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'tc1' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
INFO: (Gang) is reused
--1-gang reused
select * from t_create_gang_time where tc1=1;
INFO: (Slice1) The shortest establish conn time: 4.80 ms, segindex: 0,
The longest establish conn time: 4.80 ms, segindex: 0,
tc1 | tc2
-----+-----
(0 rows)

explain analyze select * from t_create_gang_time where tc1=1;
INFO: (Slice1) is reused
QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------
Gather Motion 1:1 (slice1; segments: 1) (cost=0.00..393.90 rows=86 width=8) (actual time=0.611..0.618 rows=0 loops=1)
-> Seq Scan on t_create_gang_time (cost=0.00..392.75 rows=29 width=8) (never executed)
Filter: (tc1 = 1)
Optimizer: Postgres query optimizer
Planning Time: 0.187 ms
(slice0) Executor memory: 36K bytes.
(slice1) Executor memory: 36K bytes (seg1).
Memory used: 128000kB
Execution Time: 1.249 ms
(9 rows)

--n-gang reused and 1-gang is created.
select * from t_create_gang_time t1, t_create_gang_time t2 where t1.tc1=2;
Expand Down

0 comments on commit 00835ec

Please sign in to comment.