Skip to content

Commit 808a5b0

Browse files
Merge pull request #1 from spiraldb/ji/add-null-test
Add null test
2 parents 094a43b + 031d866 commit 808a5b0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/sql/nulls.test

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# name: test/sql/nulls.test
2+
# description: test nullable values
3+
# group: [vortex]
4+
5+
# Before we load the extension, this will fail
6+
7+
require vortex
8+
9+
# copy vortex
10+
statement ok
11+
COPY ((SELECT generate_series as s1, NULL as s2 from generate_series(0, 4)) union (SELECT generate_series as s1, generate_series + 1 as s2 from generate_series(5,8))) TO '__TEST_DIR__/test.vortex' (FORMAT VORTEX)
12+
13+
# read vortex
14+
query II
15+
SELECT s1, s2 FROM read_vortex('__TEST_DIR__/test.vortex') ORDER BY s1;
16+
----
17+
0 NULL
18+
1 NULL
19+
2 NULL
20+
3 NULL
21+
4 NULL
22+
5 6
23+
6 7
24+
7 8
25+
8 9

0 commit comments

Comments
 (0)