Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete temporary files for tests gpfdist2 and gpfdist2_compress #1155

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/bin/gpfdist/regress/input/gpfdist2.source
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ CREATE TABLE REG_REGION (R_REGIONKEY INT, R_NAME CHAR(25), R_COMMENT VARCHAR(152
-- select * from check_ps;
-- select * from check_env;

-- Helper to remove the output files
DROP EXTERNAL WEB TABLE IF EXISTS clean_out_files;
CREATE EXTERNAL WEB TABLE clean_out_files (x text)
EXECUTE E'(rm -f @abs_srcdir@/data/gpfdist2/lineitem.tbl.out.zst @abs_srcdir@/data/gpfdist2/test_quote.csv)'
on SEGMENT 0
FORMAT 'text';

SELECT * FROM clean_out_files;
RekGRpth marked this conversation as resolved.
Show resolved Hide resolved
red1452 marked this conversation as resolved.
Show resolved Hide resolved

-- end_ignore


Expand Down
10 changes: 10 additions & 0 deletions src/bin/gpfdist/regress/input/gpfdist2_compress.source
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ FORMAT 'text' (delimiter '|');
-- start_ignore
select * from gpfdist2_stop;
select * from gpfdist2_start;

-- Helper to remove the output files
DROP EXTERNAL WEB TABLE IF EXISTS clean_out_files;
CREATE EXTERNAL WEB TABLE clean_out_files (x text)
EXECUTE E'( rm -f @abs_srcdir@/data/gpfdist2/lineitem.tbl.w)'
on SEGMENT 0
FORMAT 'text';

SELECT * FROM clean_out_files;

-- end_ignore

--- test 1 using a little file
Expand Down
Loading