Skip to content

Commit

Permalink
Fix directory table ci test unstable.
Browse files Browse the repository at this point in the history
As two directory schema tables have the approximately the same in tuples
count, the join plan is unstable. We fix this by adding more tuples to
one schema table.

Authored-by: Zhang Wenchao [email protected]
  • Loading branch information
wenchaozhang-123 authored and my-ship-it committed Nov 29, 2024
1 parent 6df030c commit 4859142
Show file tree
Hide file tree
Showing 3 changed files with 367 additions and 66 deletions.
13 changes: 13 additions & 0 deletions src/test/regress/input/directory_table.source
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,19 @@ SELECT relative_path, size, tag FROM dir_table2 ORDER BY 1;
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation3' WITH TAG 'nation2'; -- fail
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation4' WITH TAG 'nation';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation5' WITH TAG 'nation' WITH TAG 'nation2'; -- fail
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation6';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation7';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation8';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation9';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation10';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation11';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation12';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation13';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation14';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation15';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation16';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation17';
\COPY BINARY dir_table1 FROM '@abs_srcdir@/data/nation.csv' 'nation18';
SELECT relative_path, size, tag FROM dir_table1 ORDER BY 1;
SELECT relative_path, content FROM directory_table('dir_table1') ORDER BY 1;

Expand Down
Loading

0 comments on commit 4859142

Please sign in to comment.