Skip to content

Commit 718a21f

Browse files
committed
sqllogic test to register and query arrow table
1 parent f9053a3 commit 718a21f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • datafusion/core/tests/sqllogictests/test_files

datafusion/core/tests/sqllogictests/test_files/ddl.slt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,18 @@ DROP TABLE my_table;
310310
statement ok
311311
DROP TABLE aggregate_simple
312312

313+
# Arrow format
314+
statement ok
315+
CREATE external table arrow_simple STORED as ARROW LOCATION 'tests/data/example.arrow';
316+
317+
query ITB rowsort
318+
SELECT * FROM arrow_simple order by f1 LIMIT 1
319+
----
320+
2 bar NULL
321+
322+
statement ok
323+
DROP TABLE arrow_simple
324+
313325
# create_table_with_schema_as_select_mismatch
314326
statement error table 'datafusion.public.aggregate_simple' not found
315327
CREATE TABLE my_table(c1 float, c2 double, c3 boolean, c4 varchar) AS SELECT * FROM aggregate_simple;

0 commit comments

Comments
 (0)