Skip to content

Commit 25f07e5

Browse files
committed
modify tests
1 parent 4a4576e commit 25f07e5

File tree

3 files changed

+45
-51
lines changed

3 files changed

+45
-51
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
statement ok
2+
set global max_threads = 1;
3+
4+
statement ok
5+
drop table if exists products;
6+
7+
statement ok
8+
drop table if exists table_random;
9+
10+
statement ok
11+
drop stage if exists s1;
12+
13+
statement ok
14+
create stage s1 FILE_FORMAT = (TYPE = CSV);
15+
16+
statement ok
17+
create table products (id int, name string, description string);
18+
19+
statement ok
20+
create table table_random(a int,b string,c string) ENGINE = Random;
21+
22+
statement ok
23+
copy into @s1 from (select a,b,c from table_random limit 10);
24+
25+
statement ok
26+
copy into @s1 from (select a,b,c from table_random limit 10);
27+
28+
statement ok
29+
copy into @s1 from (select a,b,c from table_random limit 10);
30+
31+
statement ok
32+
copy into @s1 from (select a,b,c from table_random limit 10);
33+
34+
statement ok
35+
copy into products from @s1 pattern = '.*[.]csv' purge = true;
36+
37+
query I
38+
select count(*) from products;
39+
----
40+
40
41+
42+
query I
43+
select block_count from fuse_snapshot('default','products');
44+
----
45+
2

tests/suites/1_stateful/00_copy/00_0011_dirtributed_copy_from_stage_for_text_file.result

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/suites/1_stateful/00_copy/00_0011_dirtributed_copy_from_stage_for_text_file.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)