Skip to content

Commit 6313096

Browse files
committed
PAX: fix icw_test in github CI
Removed some useless file and change fix the pax icw_test in github CI Also changed the `Cloudberry Database` to `Apache Cloudberry`
1 parent 1d2c3f6 commit 6313096

368 files changed

Lines changed: 2051 additions & 5227 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

contrib/pax_storage/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MODULE_big = pax
44
OBJS = \
55
$(WIN32RES)
66
PG_CPPFLAGS = -I/usr/local/include
7-
PG_CXXFLAGS = -std=c++14
7+
PG_CXXFLAGS = -std=c++17
88

99
PGFILEDESC = "pax - PAX table access method"
1010
SHLIB_LINK += -luuid
@@ -94,6 +94,9 @@ regress_test:
9494
make -C $(PAX_REGRESS_DIR) icw_test
9595

9696
isolation2_test:
97+
@echo "Begin running pax isolation2 tests"
98+
make -C $(PAX_REGRESS_DIR) regress_link
99+
@echo "Current PGOPTIONS=$(PGOPTIONS)"
97100
make -C $(PAX_ISOLATION2_DIR) installcheck
98101

99102
.PHONY: uninstall-data

contrib/pax_storage/expected/alter_distributed.out

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
set default_table_access_method = pax;
22
CREATE TABLE list_parted (a numeric, b int, c int8) PARTITION BY list (a);
3-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
3+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
44
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
55
CREATE TABLE sub_parted PARTITION OF list_parted for VALUES in (1) PARTITION BY list (b);
66
NOTICE: table has parent, setting distribution columns to match parent table
77
CREATE TABLE sub_part1(b int, c int8, a numeric);
8-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Cloudberry Database data distribution key for this table.
8+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Apache Cloudberry data distribution key for this table.
99
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
1010
alter table sub_part1 set distributed by (a);
1111
ALTER TABLE sub_parted ATTACH PARTITION sub_part1 for VALUES in (1);
1212
CREATE TABLE sub_part2(b int, c int8, a numeric);
13-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Cloudberry Database data distribution key for this table.
13+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Apache Cloudberry data distribution key for this table.
1414
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
1515
alter table sub_part2 set distributed by (a);
1616
ALTER TABLE sub_parted ATTACH PARTITION sub_part2 for VALUES in (2);
1717
CREATE TABLE list_part1(a numeric, b int, c int8);
18-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
18+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
1919
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2020
ALTER TABLE list_parted ATTACH PARTITION list_part1 for VALUES in (2,3);
2121
INSERT into list_parted VALUES (2,5,50);
2222
INSERT into list_parted VALUES (3,6,60);
2323
INSERT into sub_parted VALUES (1,1,60);
2424
INSERT into sub_parted VALUES (1,2,10);
2525
CREATE TABLE non_parted (id int);
26-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Cloudberry Database data distribution key for this table.
26+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Apache Cloudberry data distribution key for this table.
2727
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2828
INSERT into non_parted VALUES (1), (1), (1), (2), (2), (2), (3), (3), (3);
2929
select gp_segment_id,seq from gp_dist_random('pg_ext_aux.pg_pax_fastsequence') where
@@ -61,22 +61,22 @@ UPDATE list_parted t1 set a = 2 FROM non_parted t2 WHERE t1.a = t2.id and a = 1;
6161
drop table list_parted;
6262
drop table non_parted;
6363
CREATE TABLE list_parted (a numeric, b int, c int8) PARTITION BY list (a);
64-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
64+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
6565
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
6666
CREATE TABLE sub_parted PARTITION OF list_parted for VALUES in (1) PARTITION BY list (b);
6767
NOTICE: table has parent, setting distribution columns to match parent table
6868
CREATE TABLE sub_part1(b int, c int8, a numeric);
69-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Cloudberry Database data distribution key for this table.
69+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Apache Cloudberry data distribution key for this table.
7070
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
7171
alter table sub_part1 set distributed by (a);
7272
ALTER TABLE sub_parted ATTACH PARTITION sub_part1 for VALUES in (1);
7373
CREATE TABLE sub_part2(b int, c int8, a numeric);
74-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Cloudberry Database data distribution key for this table.
74+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Apache Cloudberry data distribution key for this table.
7575
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
7676
alter table sub_part2 set distributed by (a);
7777
ALTER TABLE sub_parted ATTACH PARTITION sub_part2 for VALUES in (2);
7878
CREATE TABLE list_part1(a numeric, b int, c int8);
79-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
79+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
8080
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
8181
ALTER TABLE list_parted ATTACH PARTITION list_part1 for VALUES in (2,3);
8282
-- make fastseq bigger than 1
@@ -95,7 +95,7 @@ INSERT into list_parted VALUES (3,6,60);
9595
INSERT into sub_parted VALUES (1,1,60);
9696
INSERT into sub_parted VALUES (1,2,10);
9797
CREATE TABLE non_parted (id int);
98-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Cloudberry Database data distribution key for this table.
98+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Apache Cloudberry data distribution key for this table.
9999
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
100100
INSERT into non_parted VALUES (1), (1), (1), (2), (2), (2), (3), (3), (3);
101101
select gp_segment_id,seq from gp_dist_random('pg_ext_aux.pg_pax_fastsequence') where
@@ -133,22 +133,22 @@ UPDATE list_parted t1 set a = 2 FROM non_parted t2 WHERE t1.a = t2.id and a = 1;
133133
drop table list_parted;
134134
drop table non_parted;
135135
CREATE TABLE list_parted (a numeric, b int, c int8) PARTITION BY list (a);
136-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
136+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
137137
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
138138
CREATE TABLE sub_parted PARTITION OF list_parted for VALUES in (1) PARTITION BY list (b);
139139
NOTICE: table has parent, setting distribution columns to match parent table
140140
CREATE TABLE sub_part1(b int, c int8, a numeric);
141-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Cloudberry Database data distribution key for this table.
141+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Apache Cloudberry data distribution key for this table.
142142
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
143143
alter table sub_part1 set distributed by (a);
144144
ALTER TABLE sub_parted ATTACH PARTITION sub_part1 for VALUES in (1);
145145
CREATE TABLE sub_part2(b int, c int8, a numeric);
146-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Cloudberry Database data distribution key for this table.
146+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Apache Cloudberry data distribution key for this table.
147147
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
148148
alter table sub_part2 set distributed by (a);
149149
ALTER TABLE sub_parted ATTACH PARTITION sub_part2 for VALUES in (2);
150150
CREATE TABLE list_part1(a numeric, b int, c int8);
151-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
151+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
152152
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
153153
ALTER TABLE list_parted ATTACH PARTITION list_part1 for VALUES in (2,3);
154154
INSERT into list_parted VALUES (2,5,50);

contrib/pax_storage/expected/cluster.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ select ptblockname,ptstatistics,ptisclustered from get_pax_aux_table('t_zorder_c
114114
drop table t_zorder_cluster;
115115
-- test cluster reloption without order
116116
create table t_zorder_cluster(c1 int, c2 int) with (minmax_columns='c1,c2', cluster_columns='c2,c1');
117-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'c1' as the Cloudberry Database data distribution key for this table.
117+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'c1' as the Apache Cloudberry data distribution key for this table.
118118
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
119119
insert into t_zorder_cluster select i,i from generate_series(1,100000) i;
120120
insert into t_zorder_cluster select i,i from generate_series(1,100000) i;

contrib/pax_storage/expected/ddl.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ create table pax_test.t2(
2727
created_at timestamp with time zone not null,
2828
updated_at timestamp with time zone not null
2929
);
30-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Cloudberry Database data distribution key for this table.
30+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Apache Cloudberry data distribution key for this table.
3131
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
3232
\d+ pax_test.t2
3333
Table "pax_test.t2"

contrib/pax_storage/expected/detoast.out

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set default_table_access_method = pax;
22
CREATE TABLE toasttest_external(f1 text);
3-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Cloudberry Database data distribution key for this table.
3+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Apache Cloudberry data distribution key for this table.
44
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
55
-- The storage `EXTERNAL` allows out-of-line storage but not compression.
66
alter table toasttest_external alter column f1 set storage external;
@@ -19,7 +19,7 @@ SELECT reltoastrelid = 0 AS is_empty
1919
(1 row)
2020

2121
create table toasttest_external_pax(f1 text) using pax;
22-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Cloudberry Database data distribution key for this table.
22+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Apache Cloudberry data distribution key for this table.
2323
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2424
insert into toasttest_external_pax select * from toasttest_external;
2525
drop table toasttest_external;
@@ -36,7 +36,7 @@ select length(f1) from toasttest_external_pax;
3636

3737
drop table toasttest_external_pax;
3838
CREATE TABLE toasttest_compress(f1 text);
39-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Cloudberry Database data distribution key for this table.
39+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Apache Cloudberry data distribution key for this table.
4040
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
4141
-- The storage `MAIN` allows compression but not out-of-line storage.
4242
alter table toasttest_compress alter column f1 set storage main;
@@ -50,7 +50,7 @@ SELECT reltoastrelid = 0 AS is_empty FROM pg_class where relname = 'toasttest_co
5050
(1 row)
5151

5252
create table toasttest_compress_pax(f1 text) using pax;
53-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Cloudberry Database data distribution key for this table.
53+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Apache Cloudberry data distribution key for this table.
5454
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
5555
insert into toasttest_compress_pax select * from toasttest_compress;
5656
drop table toasttest_compress;
@@ -62,7 +62,7 @@ select length(f1) from toasttest_compress_pax;
6262

6363
drop table toasttest_compress_pax;
6464
CREATE TABLE toasttest_extended(f1 text);
65-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Cloudberry Database data distribution key for this table.
65+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Apache Cloudberry data distribution key for this table.
6666
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
6767
-- The storage `EXTENDED` allows both compression and out-of-line storage.
6868
alter table toasttest_extended alter column f1 set storage EXTENDED;
@@ -77,7 +77,7 @@ SELECT reltoastrelid = 0 AS is_empty FROM pg_class where relname = 'toasttest_ex
7777
(1 row)
7878

7979
create table toasttest_extended_pax(f1 text) using pax;
80-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Cloudberry Database data distribution key for this table.
80+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'f1' as the Apache Cloudberry data distribution key for this table.
8181
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
8282
insert into toasttest_extended_pax select * from toasttest_extended;
8383
drop table toasttest_extended;

contrib/pax_storage/expected/filter_tree.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ create or replace function falserc(iint int)
1616
begin return false; end;
1717
$$ language plpgsql;
1818
create table t1(same int, v1 int, v2 int, v3 int, v4 int) using pax with (minmax_columns='v1,v2,v3,v4');
19-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Cloudberry Database data distribution key for this table.
19+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Apache Cloudberry data distribution key for this table.
2020
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2121
create table t2(same int, v1 int, v2 int, v3 int, v4 int) using pax with (minmax_columns='v1,v2,v3,v4');
22-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Cloudberry Database data distribution key for this table.
22+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Apache Cloudberry data distribution key for this table.
2323
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2424
create table t_allnull(v1 int, v2 int, v3 int, v4 int) using pax with (minmax_columns='v1,v2,v3,v4');
25-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'v1' as the Cloudberry Database data distribution key for this table.
25+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'v1' as the Apache Cloudberry data distribution key for this table.
2626
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2727
-- two file with minmax(1,400) and minmax(401,800)
2828
insert into t1 values(1, generate_series(1, 100), generate_series(101, 200), generate_series(201, 300), generate_series(301, 400));

contrib/pax_storage/expected/filter_tree_1.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ create or replace function falserc(iint int)
1616
begin return false; end;
1717
$$ language plpgsql;
1818
create table t1(same int, v1 int, v2 int, v3 int, v4 int) using pax with (minmax_columns='v1,v2,v3,v4');
19-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Cloudberry Database data distribution key for this table.
19+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Apache Cloudberry data distribution key for this table.
2020
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2121
create table t2(same int, v1 int, v2 int, v3 int, v4 int) using pax with (minmax_columns='v1,v2,v3,v4');
22-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Cloudberry Database data distribution key for this table.
22+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'same' as the Apache Cloudberry data distribution key for this table.
2323
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2424
create table t_allnull(v1 int, v2 int, v3 int, v4 int) using pax with (minmax_columns='v1,v2,v3,v4');
25-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'v1' as the Cloudberry Database data distribution key for this table.
25+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'v1' as the Apache Cloudberry data distribution key for this table.
2626
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2727
-- two file with minmax(1,400) and minmax(401,800)
2828
insert into t1 values(1, generate_series(1, 100), generate_series(101, 200), generate_series(201, 300), generate_series(301, 400));

0 commit comments

Comments
 (0)