Skip to content

Commit

Permalink
undo deletion of test in copy.slt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Zhukov committed Feb 3, 2025
1 parent e9033ed commit 07157a7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions datafusion/sqllogictest/test_files/copy.slt
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,25 @@ select * from validate_arrow_file;
1 Foo
2 Bar

# Copy from dict encoded values to single arrow file
query I
COPY (values
('c', arrow_cast('foo', 'Dictionary(Int32, Utf8)')), ('d', arrow_cast('bar', 'Dictionary(Int32, Utf8)')))
to 'test_files/scratch/copy/table_dict.arrow' STORED AS ARROW;
----
2

# Validate single csv output
statement ok
CREATE EXTERNAL TABLE validate_arrow_file_dict
STORED AS arrow
LOCATION 'test_files/scratch/copy/table_dict.arrow';

query TT
select * from validate_arrow_file_dict;
----
c foo
d bar

# Copy from table to folder of json
query I
Expand Down

0 comments on commit 07157a7

Please sign in to comment.