You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/suites/1_stateful/00_stage/00_0016_copy_purge_duplicated.result
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
>>>> create table t16(a int, b int)
3
3
>>>> drop stage if exists s16
4
4
>>>> create stage s16 url='fs:///tmp/00_0016/';
5
+
>>>> unset global purge_duplicated_files_in_copy;
5
6
>>>> copy into t16 from @s16 file_format = (type = CSV) purge = true
6
7
i1.csv 2 0 NULL NULL
7
8
<<<<
@@ -13,7 +14,8 @@ i1.csv 2 0 NULL NULL
13
14
duplicate file i1 into the stage
14
15
put the new file i2 into the stage
15
16
enable purge_duplicated_files_in_copy and copy into from location again
16
-
>>>> set purge_duplicated_files_in_copy =1; copy into t16 from @s16 file_format = (type = CSV) purge = true
17
+
>>>> set purge_duplicated_files_in_copy =1; select name,value,default,level from system.settings where name='purge_duplicated_files_in_copy'; copy into t16 from @s16 file_format = (type = CSV) purge = true
18
+
purge_duplicated_files_in_copy 1 0 SESSION
17
19
i2.csv 2 0 NULL NULL
18
20
<<<<
19
21
stage should be empty, the duplicated file i1 should be removed
@@ -27,7 +29,8 @@ tow new rows from new file i2 should be copied into table t16
27
29
4 4
28
30
put the same files into the stage
29
31
enable purge_duplicated_files_in_copy and copy into from location again
30
-
>>>> set purge_duplicated_files_in_copy =1; copy into t16 from @s16 file_format = (type = CSV) purge = true
32
+
>>>> set purge_duplicated_files_in_copy =1;select name,value,default,level from system.settings where name='purge_duplicated_files_in_copy'; copy into t16 from @s16 file_format = (type = CSV) purge = true
33
+
purge_duplicated_files_in_copy 1 0 SESSION
31
34
<<<<
32
35
stage should be empty
33
36
>>>> list @s16
@@ -40,7 +43,8 @@ table should be unchanged
40
43
4 4
41
44
put the same files into the stage
42
45
enable purge_duplicated_files_in_copy, but disable the purge option, then copy into from location again
43
-
>>>> set purge_duplicated_files_in_copy =1; copy into t16 from @s16 file_format = (type = CSV) purge = false
46
+
>>>> set purge_duplicated_files_in_copy =1; select name,value,default,level from system.settings where name='purge_duplicated_files_in_copy'; copy into t16 from @s16 file_format = (type = CSV) purge = false
47
+
purge_duplicated_files_in_copy 1 0 SESSION
44
48
<<<<
45
49
stage should not be empty, contains i1 and i2
46
50
<<<<
@@ -56,7 +60,8 @@ table should be unchanged
56
60
put the same files into the stage
57
61
also put the a new file into the stage
58
62
enable purge_duplicated_files_in_copy, but disable the purge option, then copy into from location again
59
-
>>>> set purge_duplicated_files_in_copy =1; copy into t16 from @s16 file_format = (type = CSV) purge = false
63
+
>>>> set purge_duplicated_files_in_copy =1; select name,value,default,level from system.settings where name='purge_duplicated_files_in_copy'; copy into t16 from @s16 file_format = (type = CSV) purge = false
64
+
purge_duplicated_files_in_copy 1 0 SESSION
60
65
i3.csv 2 0 NULL NULL
61
66
<<<<
62
67
stage should not be empty, contains i1, i2, and i3
0 commit comments