Skip to content

Commit b4cde09

Browse files
committed
Fix some answer files
1 parent d162e60 commit b4cde09

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

src/test/regress/expected/cbdb_parallel.out

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- CBDB PARALLEL
33
-- Test CBDB style parallel plan.
44
-- GUCs shoule be set with local, do not disturb other parallel plans.
5-
-- Should not use force_parallel_mode as it will ignore plan and check results only.
5+
-- Should not use debug_parallel_query as it will ignore plan and check results only.
66
-- We want to check plan in this file!
77
-- If there is need to do that, set it local inside a transaction.
88
-- Set optimizer off in this file, ORCA parallel is not supported.
@@ -31,7 +31,7 @@
3131
-- 12 CdbLocusType_HashedWorkers
3232
--
3333
--
34-
set force_parallel_mode = 0;
34+
set debug_parallel_query=off;
3535
set optimizer = off;
3636
create schema test_parallel;
3737
set search_path to test_parallel;
@@ -628,7 +628,7 @@ set local enable_parallel = on;
628628
create index on t1(c2);
629629
insert into t1 select i, i from generate_series(1, 10000000) i;
630630
analyze t1;
631-
set local force_parallel_mode = 1;
631+
set local debug_parallel_query=regress;
632632
set local enable_seqscan = off;
633633
explain(locus, costs off) select c2 from t1;
634634
QUERY PLAN
@@ -2710,7 +2710,7 @@ abort;
27102710
begin;
27112711
set local optimizer=off;
27122712
set local enable_parallel=on;
2713-
set local force_parallel_mode =1 ;
2713+
set local debug_parallel_query=regress;
27142714
set local min_parallel_table_scan_size = 0;
27152715
create table semi_t1 (c1 integer) with(parallel_workers=2) distributed randomly;
27162716
create table semi_t2 (c2 integer) with(parallel_workers=2) distributed randomly;
@@ -3073,5 +3073,5 @@ abort;
30733073
drop schema test_parallel cascade;
30743074
-- end_ignore
30753075
reset gp_appendonly_insert_files;
3076-
reset force_parallel_mode;
3076+
reset debug_parallel_query;
30773077
reset optimizer;

src/test/regress/expected/qp_gist_indexes2.out

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ language plpython3u;
2424
CREATE TABLE GistTable1 ( id INTEGER, owner VARCHAR, description VARCHAR, property BOX, poli POLYGON, bullseye CIRCLE, v VARCHAR, t TEXT, f FLOAT, p POINT, c CIRCLE, filler VARCHAR DEFAULT 'This is here just to take up space so that we use more pages of data and sequential scans take a lot more time. Stones tinheads and mixers coming; we did it all on our own; this summer I hear the crunching; 11 dead in Ohio. Got right down to it; we were cutting us down; could have had fun but, no; left them face down dead on the ground. How can you listen when you know?'
2525
)
2626
DISTRIBUTED BY (id);
27+
\getenv abs_srcdir PG_ABS_SRCDIR
28+
\set PropertyInfo_file :abs_srcdir '/data/PropertyInfo.txt'
2729
COPY GistTable1 FROM
28-
'@abs_srcdir@/data/PropertyInfo.txt'
30+
:'PropertyInfo_file'
2931
CSV
3032
;
3133
ANALYZE GistTable1;
@@ -729,7 +731,7 @@ CREATE TABLE GistTable1 ( id INTEGER, owner VARCHAR, description VARCHAR, proper
729731
WITH (APPENDONLY=True, COMPRESSTYPE=ZLIB, COMPRESSLEVEL=1)
730732
DISTRIBUTED BY (id);
731733
COPY GistTable1 FROM
732-
'@abs_srcdir@/data/PropertyInfo.txt'
734+
:'PropertyInfo_file'
733735
CSV
734736
;
735737
-- ----------------------------------------------------------------------
@@ -1351,7 +1353,7 @@ CREATE TABLE GistTable1 ( id INTEGER, owner VARCHAR, description VARCHAR, proper
13511353
WITH (APPENDONLY=True)
13521354
DISTRIBUTED BY (id);
13531355
COPY GistTable1 FROM
1354-
'@abs_srcdir@/data/PropertyInfo.txt'
1356+
:'PropertyInfo_file'
13551357
CSV
13561358
;
13571359
-- ----------------------------------------------------------------------
@@ -1973,7 +1975,7 @@ CREATE TABLE GistTable1 ( id INTEGER, owner VARCHAR, description VARCHAR, proper
19731975
WITH (APPENDONLY=True, ORIENTATION='column', COMPRESSTYPE=ZLIB, COMPRESSLEVEL=1)
19741976
DISTRIBUTED BY (id);
19751977
COPY GistTable1 FROM
1976-
'@abs_srcdir@/data/PropertyInfo.txt'
1978+
:'PropertyInfo_file'
19771979
CSV
19781980
;
19791981
-- ----------------------------------------------------------------------
@@ -2595,7 +2597,7 @@ CREATE TABLE GistTable1 ( id INTEGER, owner VARCHAR, description VARCHAR, proper
25952597
WITH (APPENDONLY=True, ORIENTATION='column')
25962598
DISTRIBUTED BY (id);
25972599
COPY GistTable1 FROM
2598-
'@abs_srcdir@/data/PropertyInfo.txt'
2600+
:'PropertyInfo_file'
25992601
CSV
26002602
;
26012603
-- ----------------------------------------------------------------------

src/test/regress/expected/qp_regexp.out

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ state char(2),
1919
phone_num bigint
2020
)
2121
distributed by (lname);
22-
\copy public.phone_book from '@abs_srcdir@/data/phone_book.txt' delimiter as '|'
22+
\getenv abs_srcdir PG_ABS_SRCDIR
23+
\set phone_book_file :abs_srcdir '/data/phone_book.txt'
24+
copy public.phone_book from :'phone_book_file' delimiter as '|';
2325
drop table if exists phone_book_substr;
2426
NOTICE: table "phone_book_substr" does not exist, skipping
2527
create table phone_book_substr

src/test/regress/expected/session_reset.out

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
set log_min_messages to ERROR;
2+
\getenv abs_builddir PG_ABS_BUILDDIR
3+
\set regress_dll :abs_builddir '/regress.so'
24
CREATE OR REPLACE FUNCTION gp_execute_on_server(content int, query text) returns text
3-
language C as '@abs_builddir@/regress@DLSUFFIX@', 'gp_execute_on_server';
5+
language C as :'regress_dll', 'gp_execute_on_server';
46
-- terminate backend process for this session on segment with content ID = 0
57
select gp_execute_on_server(0, 'select pg_terminate_backend(pg_backend_pid())');
68
ERROR: terminating connection due to administrator command (seg0 10.152.10.149:25432 pid=32665)

src/test/regress/sql/qp_regexp.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ distributed by (lname);
2727

2828
\getenv abs_srcdir PG_ABS_SRCDIR
2929
\set phone_book_file :abs_srcdir '/data/phone_book.txt'
30-
copy public.phone_book from :'phone_book_file' delimiter as '|'
30+
copy public.phone_book from :'phone_book_file' delimiter as '|';
3131

3232
drop table if exists phone_book_substr;
3333

src/test/regress/sql/session_reset.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
set log_min_messages to ERROR;
3-
\getenv abs_builddir ABS_BUILDDIR
3+
\getenv abs_builddir PG_ABS_BUILDDIR
44
\set regress_dll :abs_builddir '/regress.so'
55
CREATE OR REPLACE FUNCTION gp_execute_on_server(content int, query text) returns text
66
language C as :'regress_dll', 'gp_execute_on_server';

0 commit comments

Comments
 (0)