Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchaozhang-123 committed Mar 28, 2024
1 parent d266209 commit 8c65b3a
Showing 1 changed file with 4 additions and 41 deletions.
45 changes: 4 additions & 41 deletions src/test/isolation2/input/local_directory_table_mixed.source
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';
2<:
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT remove_file('dir_table1', 'nation3');
2: COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation8';
1: COMMIT;
2: COMMIT;

-- Test select and select
1: BEGIN;
2: BEGIN;
Expand All @@ -66,34 +59,12 @@ CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';
-- Test select and remove_file()
1: BEGIN;
2: BEGIN;
1: SELECT relative_path, size, md5, tag FROM dir_table1;
1: SELECT relative_path, size, md5, tag, content FROM directory_table('dir_table1');
2&: SELECT remove_file('dir_table1', 'nation7');
1: COMMIT;
2<:
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT remove_file('dir_table1', 'nation5');
2: SELECT relative_path, size, md5, tag FROM dir_table1;
1: COMMIT;
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT remove_file('dir_table2', 'nation6');
2&: SELECT relative_path, size, md5, tag, content FROM directory_table('dir_table2');
1: COMMIT;
2<:
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT relative_path, size, md5, tag, content FROM directory_table('dir_table2');
2: SELECT remove_file('dir_table2', 'nation5');
1: COMMIT;
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT relative_path, size, md5, tag FROM dir_table1;
Expand All @@ -117,29 +88,21 @@ CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';
1: COMMIT;
2: COMMIT;

-- Test drop directory table and copy from/select/remove
-- Test drop directory table and copy from/select
1: BEGIN;
2: BEGIN;
1: COPY BINARY dir_table3 FROM '@abs_srcdir@/data/nation.csv' 'nation';
1: COPY BINARY dir_table3 FROM '@abs_srcdir@/data/nation.csv' 'nation1';
2&: DROP DIRECTORY TABLE dir_table3;
1: COMMIT;
2<:
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT relative_path, size, md5, tag FROM dir_table2;
1: SELECT relative_path, size, md5, tag, content FROM directory_table('dir_table2');
2&: DROP DIRECTORY TABLE dir_table2;
1: COMMIT;
2<:
2: COMMIT;

1: BEGIN;
2: BEGIN;
1: SELECT remove_file('dir_table1', 'nation1');
2&: DROP DIRECTORY TABLE dir_table1;
1: COMMIT;
2<:
2: COMMIT;

DROP TABLESPACE directory_tblspc;

0 comments on commit 8c65b3a

Please sign in to comment.