1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-09-14 22:39:59 +00:00

Add test cases

This commit is contained in:
Colin Dellow
2018-03-10 13:25:13 -05:00
parent b7c134efc0
commit 96fcafcd2f
37 changed files with 139 additions and 11 deletions

View File

@@ -0,0 +1,2 @@
select string_7, string_8 from nulls where string_8 like '%0'
0|000

View File

@@ -0,0 +1 @@
select string_7, string_8 from nulls where string_8 like '0'

View File

@@ -0,0 +1,51 @@
select string_7, string_8 from nulls where string_8 like '0%'
0|000
1|001
2|002
3|003
4|004
5|005
6|006
7|007
8|008
9|009
|021
|023
|025
|027
|029
|031
|033
|035
|037
|039
|041
|043
|045
|047
|049
|051
|053
|055
|057
|059
|061
|063
|065
|067
|069
|071
|073
|075
|077
|079
|081
|083
|085
|087
|089
|091
|093
|095
|097
|099

View File

@@ -0,0 +1,2 @@
select string_7, string_8 from nulls where string_8 like '0_0'
0|000

View File

@@ -0,0 +1,3 @@
select string_8 from nulls where string_8 > '010' and string_8 < '024'
021
023

View File

@@ -0,0 +1,2 @@
select string_8 from nulls where string_8 >= '021' and string_8 <= '021'
021

View File

@@ -0,0 +1,2 @@
select string_8 from nulls where string_8 = '021'
021

View File

@@ -0,0 +1,2 @@
select string_8 from nulls where rowid = 21 and string_8 = '021'
021

View File

@@ -0,0 +1 @@
select string_8 from nulls where rowid = 21 and string_8 <> '021'

View File

@@ -0,0 +1,2 @@
select int8_1 from nulls where int8_1 = 30
30

View File

@@ -0,0 +1,2 @@
select int8_1 from nulls where int8_1 < -46
-48

View File

@@ -0,0 +1,3 @@
select int8_1 from nulls where int8_1 <= -46
-46
-48

View File

@@ -0,0 +1,2 @@
select int8_1 from nulls where int8_1 > 49
50

View File

@@ -0,0 +1,3 @@
select int8_1 from nulls where int8_1 >= 49
50
49

View File

@@ -0,0 +1 @@
select int8_1 from nulls where rowid = 66 and int8_1 <> -16

View File

@@ -0,0 +1,3 @@
select int64_4 from nulls where int64_4 >= 49000000000
50000000000
49000000000

View File

@@ -0,0 +1,2 @@
select int64_4 from nulls where int64_4 > 49000000000
50000000000

View File

@@ -0,0 +1,2 @@
select int64_4 from nulls where int64_4 = 49000000000
49000000000

View File

@@ -0,0 +1,2 @@
select int64_4 from nulls where int64_4 < -47000000000
-49000000000

View File

@@ -0,0 +1,3 @@
select int64_4 from nulls where int64_4 <= -47000000000
-47000000000
-49000000000

View File

@@ -0,0 +1 @@
select int64_4 from nulls where rowid = 57 and int64_4 <> -7000000000

View File

@@ -0,0 +1,2 @@
select int64_4 from nulls where rowid = 57 and int64_4 <> -8000000000
-7000000000

View File

@@ -0,0 +1,2 @@
select printf('%.4f', double_6) as double_6 from nulls where double_6 = 100.0
100.0000

View File

@@ -0,0 +1,2 @@
select printf('%.4f', double_6) as double_6 from nulls where double_6 > 99
100.0000

View File

@@ -0,0 +1,3 @@
select printf('%.4f', double_6) as double_6 from nulls where double_6 >= 50
100.0000
50.0000

View File

@@ -0,0 +1,2 @@
select printf('%.4f', double_6) as double_6 from nulls where double_6 < 100.0 order by double_6 desc limit 1
50.0000

View File

@@ -0,0 +1,2 @@
select printf('%.4f', double_6) from nulls where double_6 <= 100.0 order by double_6 desc limit 1
100.0000

View File

@@ -0,0 +1 @@
select printf('%.4f', double_6) from nulls where rowid = 0 and double_6 <> 100

View File

@@ -0,0 +1,2 @@
select printf('%.4f', double_6) from nulls where rowid = 0 and double_6 <> 101
100.0000

View File

@@ -0,0 +1,2 @@
select rowid from nulls where binary_10 = x'01';
1

View File

@@ -0,0 +1 @@
select rowid from nulls where rowid = 1 and binary_10 <> x'01';

View File

@@ -0,0 +1,2 @@
select rowid from nulls where binary_10 < x'01';
0

View File

@@ -0,0 +1,3 @@
select rowid from nulls where binary_10 <= x'01' order by 1;
0
1

View File

@@ -0,0 +1,2 @@
select rowid from nulls where binary_10 > x'61';
99

View File

@@ -0,0 +1,3 @@
select rowid from nulls where binary_10 >= x'61' order by 1;
97
99