@@ -20,13 +20,13 @@ statement ok
20
20
create table source_table(col1 integer, col2 varchar) as values (1, 'Foo'), (2, 'Bar');
21
21
22
22
# Copy to directory as multiple files
23
- query IT
23
+ query I
24
24
COPY source_table TO 'test_files/scratch/copy/table/' STORED AS parquet OPTIONS ('format.compression' 'zstd(10)');
25
25
----
26
26
2
27
27
28
28
# Copy to directory as partitioned files
29
- query IT
29
+ query I
30
30
COPY source_table TO 'test_files/scratch/copy/partitioned_table1/' STORED AS parquet PARTITIONED BY (col2) OPTIONS ('format.compression' 'zstd(10)');
31
31
----
32
32
2
@@ -53,7 +53,7 @@ select * from validate_partitioned_parquet_bar order by col1;
53
53
2
54
54
55
55
# Copy to directory as partitioned files
56
- query ITT
56
+ query I
57
57
COPY (values (1, 'a', 'x'), (2, 'b', 'y'), (3, 'c', 'z')) TO 'test_files/scratch/copy/partitioned_table2/' STORED AS parquet PARTITIONED BY (column2, column3)
58
58
OPTIONS ('format.compression' 'zstd(10)');
59
59
----
@@ -81,7 +81,7 @@ select * from validate_partitioned_parquet_a_x order by column1;
81
81
1
82
82
83
83
# Copy to directory as partitioned files
84
- query TTT
84
+ query I
85
85
COPY (values ('1', 'a', 'x'), ('2', 'b', 'y'), ('3', 'c', 'z')) TO 'test_files/scratch/copy/partitioned_table3/' STORED AS parquet PARTITIONED BY (column1, column3)
86
86
OPTIONS ('format.compression' 'zstd(10)');
87
87
----
@@ -167,7 +167,7 @@ physical_plan
167
167
02)--MemoryExec: partitions=1, partition_sizes=[1]
168
168
169
169
# Copy to directory as partitioned files with keep_partition_by_columns enabled
170
- query TT
170
+ query I
171
171
COPY (values ('1', 'a'), ('2', 'b'), ('3', 'c')) TO 'test_files/scratch/copy/partitioned_table4/' STORED AS parquet PARTITIONED BY (column1)
172
172
OPTIONS (execution.keep_partition_by_columns true);
173
173
----
@@ -184,7 +184,7 @@ select column1, column2 from validate_partitioned_parquet4 order by column1,colu
184
184
1 a
185
185
186
186
# Copy more files to directory via query
187
- query IT
187
+ query I
188
188
COPY (select * from source_table UNION ALL select * from source_table) to 'test_files/scratch/copy/table/' STORED AS PARQUET;
189
189
----
190
190
4
@@ -203,7 +203,7 @@ select * from validate_parquet;
203
203
1 Foo
204
204
2 Bar
205
205
206
- query ?
206
+ query I
207
207
copy (values (struct(timestamp '2021-01-01 01:00:01', 1)), (struct(timestamp '2022-01-01 01:00:01', 2)),
208
208
(struct(timestamp '2023-01-03 01:00:01', 3)), (struct(timestamp '2024-01-01 01:00:01', 4)))
209
209
to 'test_files/scratch/copy/table_nested2/' STORED AS PARQUET;
@@ -221,7 +221,7 @@ select * from validate_parquet_nested2;
221
221
{c0: 2023-01-03T01:00:01, c1: 3}
222
222
{c0: 2024-01-01T01:00:01, c1: 4}
223
223
224
- query ??
224
+ query I
225
225
COPY
226
226
(values (struct ('foo', (struct ('foo', make_array(struct('a',1), struct('b',2))))), make_array(timestamp '2023-01-01 01:00:01',timestamp '2023-01-01 01:00:01')),
227
227
(struct('bar', (struct ('foo', make_array(struct('aa',10), struct('bb',20))))), make_array(timestamp '2024-01-01 01:00:01', timestamp '2024-01-01 01:00:01')))
@@ -239,7 +239,7 @@ select * from validate_parquet_nested;
239
239
{c0: foo, c1: {c0: foo, c1: [{c0: a, c1: 1}, {c0: b, c1: 2}]}} [2023-01-01T01:00:01, 2023-01-01T01:00:01]
240
240
{c0: bar, c1: {c0: foo, c1: [{c0: aa, c1: 10}, {c0: bb, c1: 20}]}} [2024-01-01T01:00:01, 2024-01-01T01:00:01]
241
241
242
- query ?
242
+ query I
243
243
copy (values ([struct('foo', 1), struct('bar', 2)]))
244
244
to 'test_files/scratch/copy/array_of_struct/'
245
245
STORED AS PARQUET;
@@ -255,7 +255,7 @@ select * from validate_array_of_struct;
255
255
----
256
256
[{c0: foo, c1: 1}, {c0: bar, c1: 2}]
257
257
258
- query ?
258
+ query I
259
259
copy (values (struct('foo', [1,2,3], struct('bar', [2,3,4]))))
260
260
to 'test_files/scratch/copy/struct_with_array/' STORED AS PARQUET;
261
261
----
@@ -272,7 +272,7 @@ select * from validate_struct_with_array;
272
272
273
273
274
274
# Copy parquet with all supported statement overrides
275
- query IT
275
+ query I
276
276
COPY source_table
277
277
TO 'test_files/scratch/copy/table_with_options/'
278
278
STORED AS PARQUET
@@ -378,7 +378,7 @@ select * from validate_parquet_with_options;
378
378
2 Bar
379
379
380
380
# Copy from table to single file
381
- query IT
381
+ query I
382
382
COPY source_table to 'test_files/scratch/copy/table.parquet';
383
383
----
384
384
2
@@ -394,7 +394,7 @@ select * from validate_parquet_single;
394
394
2 Bar
395
395
396
396
# copy from table to folder of compressed json files
397
- query IT
397
+ query I
398
398
COPY source_table to 'test_files/scratch/copy/table_json_gz' STORED AS JSON OPTIONS ('format.compression' gzip);
399
399
----
400
400
2
@@ -410,7 +410,7 @@ select * from validate_json_gz;
410
410
2 Bar
411
411
412
412
# copy from table to folder of compressed csv files
413
- query IT
413
+ query I
414
414
COPY source_table to 'test_files/scratch/copy/table_csv' STORED AS CSV OPTIONS ('format.has_header' false, 'format.compression' gzip);
415
415
----
416
416
2
@@ -426,7 +426,7 @@ select * from validate_csv;
426
426
2 Bar
427
427
428
428
# Copy from table to single csv
429
- query IT
429
+ query I
430
430
COPY source_table to 'test_files/scratch/copy/table.csv';
431
431
----
432
432
2
@@ -442,7 +442,7 @@ select * from validate_single_csv;
442
442
2 Bar
443
443
444
444
# Copy from table to folder of json
445
- query IT
445
+ query I
446
446
COPY source_table to 'test_files/scratch/copy/table_json' STORED AS JSON;
447
447
----
448
448
2
@@ -458,7 +458,7 @@ select * from validate_json;
458
458
2 Bar
459
459
460
460
# Copy from table to single json file
461
- query IT
461
+ query I
462
462
COPY source_table to 'test_files/scratch/copy/table.json' STORED AS JSON ;
463
463
----
464
464
2
@@ -474,7 +474,7 @@ select * from validate_single_json;
474
474
2 Bar
475
475
476
476
# COPY csv files with all options set
477
- query IT
477
+ query I
478
478
COPY source_table
479
479
to 'test_files/scratch/copy/table_csv_with_options'
480
480
STORED AS CSV OPTIONS (
@@ -499,7 +499,7 @@ select * from validate_csv_with_options;
499
499
2;Bar
500
500
501
501
# Copy from table to single arrow file
502
- query IT
502
+ query I
503
503
COPY source_table to 'test_files/scratch/copy/table.arrow' STORED AS ARROW;
504
504
----
505
505
2
@@ -517,7 +517,7 @@ select * from validate_arrow_file;
517
517
2 Bar
518
518
519
519
# Copy from dict encoded values to single arrow file
520
- query T?
520
+ query I
521
521
COPY (values
522
522
('c', arrow_cast('foo', 'Dictionary(Int32, Utf8)')), ('d', arrow_cast('bar', 'Dictionary(Int32, Utf8)')))
523
523
to 'test_files/scratch/copy/table_dict.arrow' STORED AS ARROW;
@@ -538,7 +538,7 @@ d bar
538
538
539
539
540
540
# Copy from table to folder of json
541
- query IT
541
+ query I
542
542
COPY source_table to 'test_files/scratch/copy/table_arrow' STORED AS ARROW;
543
543
----
544
544
2
@@ -556,7 +556,7 @@ select * from validate_arrow;
556
556
# Format Options Support without the 'format.' prefix
557
557
558
558
# Copy with format options for Parquet without the 'format.' prefix
559
- query IT
559
+ query I
560
560
COPY source_table TO 'test_files/scratch/copy/format_table.parquet'
561
561
OPTIONS (
562
562
compression snappy,
@@ -566,14 +566,14 @@ OPTIONS (
566
566
2
567
567
568
568
# Copy with format options for JSON without the 'format.' prefix
569
- query IT
569
+ query I
570
570
COPY source_table to 'test_files/scratch/copy/format_table'
571
571
STORED AS JSON OPTIONS (compression gzip);
572
572
----
573
573
2
574
574
575
575
# Copy with format options for CSV without the 'format.' prefix
576
- query IT
576
+ query I
577
577
COPY source_table to 'test_files/scratch/copy/format_table.csv'
578
578
OPTIONS (
579
579
has_header false,
0 commit comments