Skip to content

Commit 07157a7

Browse files
author
Sergey Zhukov
committed
undo deletion of test in copy.slt
1 parent e9033ed commit 07157a7

File tree

1 file changed

+19
-0
lines changed
  • datafusion/sqllogictest/test_files

1 file changed

+19
-0
lines changed

datafusion/sqllogictest/test_files/copy.slt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,25 @@ select * from validate_arrow_file;
538538
1 Foo
539539
2 Bar
540540

541+
# Copy from dict encoded values to single arrow file
542+
query I
543+
COPY (values
544+
('c', arrow_cast('foo', 'Dictionary(Int32, Utf8)')), ('d', arrow_cast('bar', 'Dictionary(Int32, Utf8)')))
545+
to 'test_files/scratch/copy/table_dict.arrow' STORED AS ARROW;
546+
----
547+
2
548+
549+
# Validate single csv output
550+
statement ok
551+
CREATE EXTERNAL TABLE validate_arrow_file_dict
552+
STORED AS arrow
553+
LOCATION 'test_files/scratch/copy/table_dict.arrow';
554+
555+
query TT
556+
select * from validate_arrow_file_dict;
557+
----
558+
c foo
559+
d bar
541560

542561
# Copy from table to folder of json
543562
query I

0 commit comments

Comments
 (0)