@@ -34,18 +34,18 @@ create file format if not exists csv_zip type=csv compression=zip;
3434
3535
3636# test csv
37- query
37+ query
3838copy into @unload from ii file_format=(type=csv);
3939-----
4040----
41413 12 12
4242
43- query
43+ query
4444select right(name, 4), size from list_stage(location=>'@unload');
4545----
4646.csv 12
4747
48- query
48+ query
4949select $1, $2 from @unload(file_format=>'csv');
5050----
51511 2
@@ -56,46 +56,46 @@ select $1, $2 from @unload(file_format=>'csv');
5656statement ok
5757remove @unload;
5858
59- query
59+ query
6060copy into @unload from ii file_format=(format_name='csv_gzip');
6161----
62623 12 32
6363
6464statement error
6565copy into @unload from ii file_format=(format_name='csv_snappy');
6666
67- query
67+ query
6868copy into @unload from ii file_format=(format_name='csv_none');
6969----
70703 12 12
7171
72- query
72+ query
7373copy into @unload from ii file_format=(format_name='csv_zip');
7474----
75753 12 136
7676
77- query
77+ query
7878select right(name, 7), size from list_stage(location=>'@unload');
7979----
8080.csv.gz 32
8181000.csv 12
8282csv.zip 136
8383
84- query
84+ query
8585select $1, $2 from @unload(file_format => 'csv_gzip' pattern => '.*.gz');
8686----
87871 2
88883 4
89895 6
9090
91- query
91+ query
9292select $1, $2 from @unload(file_format => 'csv_none' pattern => '.*.csv');
9393----
94941 2
95953 4
96965 6
9797
98- query
98+ query
9999select $1, $2 from @unload(file_format => 'csv_zip' pattern => '.*.zip');
100100----
1011011 2
@@ -106,37 +106,48 @@ select $1, $2 from @unload(file_format => 'csv_zip' pattern => '.*.zip');
106106statement ok
107107remove @unload;
108108
109- query
109+ query
110110copy into @unload from ii file_format=(format_name='tsv');
111111----
1121123 12 12
113113
114- query
114+ query
115115select right(name, 4), size from list_stage(location=>'@unload');
116116----
117117.tsv 12
118118
119- query
119+ query
120120select $1, $2 from @unload(file_format => 'tsv');
121121----
1221221 2
1231233 4
1241245 6
125125
126- query
126+ query
127127copy into @unload/a_raw_path.csv from (select 1,2) file_format=(type=csv) single=true include_query_id=false use_raw_path=true detailed_output=true overwrite=true;
128128----
129129a_raw_path.csv 4 1
130130
131- query
131+ query
132132copy into @unload/a_raw_path.csv from (select 3,4) file_format=(type=csv) single=true include_query_id=false use_raw_path=true detailed_output=true overwrite=true;
133133----
134134a_raw_path.csv 4 1
135135
136- query
136+ query
137137select $1, $2 from @unload/a_raw_path.csv (file_format => 'csv');
138138----
1391393 4
140140
141141statement error 1006.*file already exists
142- copy into @unload/a_raw_path.csv from (select 3,4) file_format=(type=csv) single=true include_query_id=false use_raw_path=true detailed_output=false overwrite=false;
142+ copy into @unload/a_raw_path.csv from (select 3,4) file_format=(type=csv) single=true include_query_id=false use_raw_path=true detailed_output=false overwrite=false;
143+
144+
145+ query
146+ copy into @unload/array_of_nulls from (select [NULL, NULL]);
147+ ----
148+ 1 8 548
149+
150+ query
151+ select * from @unload/array_of_nulls;
152+ ----
153+ [NULL,NULL]
0 commit comments