-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pg15] test: port regress for cc50080a828d
Summary: Port regress test changes as in upstream PG commit cc50080a828dd4791b43539f5a0f976e535d147c titled Rearrange core regression tests to reduce cross-script dependencies. Differences compared to the upstream commit: - aggregates: YB master e554bda incorrectly modified the spacing in CREATE TABLE aggtest to be "better", but this deviates from upstream PG, so revert it back to match upstream PG - alter_generic: none - arrays: switch temp table to YB table - btree_index: skip (test previously unported) - char: skip (test previously unported) - conversion: add new test - copy: delete test since existing queries are all moved out - create_function_0: YB modifies LOAD command but forgets semicolon. This is also a problem in master, but it doesn't have much affect there since the command still ends up getting run as it is the last command in the file. After porting tihs PG commit's changes, the lack of semicolon does matter, so add it. Then, expect this test to start passing. - create_function_1: skip changes related to previously unported test_canonicalize_path - create_function_2: none - create_function_3: none - create_index: skip lots of unported queries - create_misc: delete test since existing queries are all moved out - create_operator: none - create_table: skip lots of unported queries - create_type: none - create_view: add new test; skip unported queries - errors: translate YB modifications - expressions: skip changes related to previously unported queries - float8: switch temp table to YB table; merge DROP TABLE - foreign_data: none - geometry: skip (affected queries previously unported) - hash_index: skip (affected queries previously unported) - horology: skip (affected queries previously unported) - indirect_toast: add new test - insert: none - int2: translate YB modifications into test_setup - int4: translate YB modifications into test_setup - int8: translate YB modifications into test_setup - join: skip (affected queries previously unported) - jsonb: none - lock: add new test - misc: add new test; translate YB modifications; switch temp table to YB table; skip unported queries - misc_functions: skip unported queries - point: - skip unported queries (newly added by PG) - YB master deviated from PG 11 by inserting null in point test rather than create_index test. By porting the changes to this file, this discrepancy goes away here in the YB pg15 branch. Do that and update expected output to not expect null rows in both yb_pg_point and yb_pg_geometry. Don't bother fixing the discrepancy on master because the dependency situation is not pretty: point -> create_index -> arrays. - rangetypes: none - rules: update query like PG does, ignoring previous YB modifications, and remove lines from output like PG does - sanity_check: skip (test previously unported) - select: none - select_distinct: none - select_distinct_on: queries should have been affected, but 79bba07 incorrectly ported the test in such a way that there is no change needed - select_into: skip (test previously unported) - test_setup: add new test; skip unported queries except some VACUUM ANALYZE; update output with WARNING/ERROR for VACUUM - text: translate YB modifications into test_setup - transactions: skip (test previously unported) - triggers: none - tsearch: none - type_sanity: skip (test previously unported) - varchar: switch temp table to YB table - with: translate YB modifications Update yb_dep_* tests, schedules, and README. Add new yb_dep_float8_tbl and yb_dep_part_test_int4_ops tests to fill in some gaps introduced by this change. Update expectations of some tests in pg15_tests/ to match the better shape the regress tests are in. Add pg15_tests/test_types_geo.sh because the point merge was nontrivial. (Note: yb_pg_partition_prune could deduplicate copy-paste of part_test_int4_ops, but this should be applied to master first.) Test Plan: Almalinux 8: #!/usr/bin/env bash set -eu ./yb_build.sh fastdebug --gcc11 pg15_tests/run_all_tests.sh fastdebug --gcc11 --sj --sp --scb pg15_tests/run_test_n_times.sh test_types_geo.sh 10 fastdebug --gcc11 --sj --scb --sp Jenkins: skip Reviewers: aagrawal, tfoucher Reviewed By: tfoucher Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D30960
- Loading branch information
Showing
121 changed files
with
1,426 additions
and
1,616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
source "${BASH_SOURCE[0]%/*}"/common.sh | ||
|
||
# Modified slightly due to D29444. | ||
java_test TestPgRegressTypesGeo false | ||
# yb_pg_point should pass. | ||
grep_in_java_test \ | ||
"failed tests: [yb_pg_geometry, yb_pg_line, yb_pg_polygon]" \ | ||
TestPgRegressTypesGeo | ||
# yb_pg_geometry should only have a small failure. | ||
diff <(diff build/latest/postgres_build/src/test/regress/{expected,results}/yb_pg_geometry.out || true) - <<EOT | ||
132c132 | ||
< | (0,0) | [(0,0),(6,6)] | (-0,0) | ||
--- | ||
> | (0,0) | [(0,0),(6,6)] | (0,0) | ||
EOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/postgres/src/test/regress/expected/yb_dep_array_op_test.out
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/postgres/src/test/regress/expected/yb_dep_float8_tbl.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- | ||
-- A collection of queries to build the float8_tbl table. | ||
-- | ||
-- The queries are taken from the relevant dependency files. Since it is | ||
-- faster to run this rather than each file itself (e.g. dependency chain | ||
-- test_setup, create_index), prefer using this. | ||
-- | ||
-- | ||
-- test_setup | ||
-- | ||
CREATE TABLE FLOAT8_TBL(f1 float8); | ||
INSERT INTO FLOAT8_TBL(f1) VALUES | ||
('0.0'), | ||
('-34.84'), | ||
('-1004.30'), | ||
('-1.2345678901234e+200'), | ||
('-1.2345678901234e-200'); | ||
VACUUM FLOAT8_TBL; | ||
WARNING: VACUUM will be ignored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/postgres/src/test/regress/expected/yb_dep_part_test_int4_ops.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- | ||
-- A collection of queries to build the part_test_int4_ops opclass. | ||
-- | ||
-- The queries are taken from the relevant dependency files. Since it is | ||
-- faster to run this rather than each file itself (e.g. dependency chain | ||
-- test_setup, create_index), prefer using this. | ||
-- | ||
-- | ||
-- test_setup | ||
-- | ||
create function part_hashint4_noop(value int4, seed int8) | ||
returns int8 as $$ | ||
select value + seed; | ||
$$ language sql strict immutable parallel safe; | ||
create operator class part_test_int4_ops for type int4 using hash as | ||
operator 1 =, | ||
function 2 part_hashint4_noop(int4, int8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/postgres/src/test/regress/expected/yb_dep_test_tsvector.out
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/postgres/src/test/regress/expected/yb_dep_testjsonb.out
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.