mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-12-16 06:03:28 +00:00
Convert existing tests to use new runner
This commit is contained in:
2
tests/normal-use/binary-eq/query.sql
Normal file
2
tests/normal-use/binary-eq/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select rowid FROM dataset where binary_10 = x'01';
|
||||
.output
|
||||
1
tests/normal-use/binary-eq/results.txt
Normal file
1
tests/normal-use/binary-eq/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
2
|
||||
2
tests/normal-use/binary-gt/query.sql
Normal file
2
tests/normal-use/binary-gt/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select rowid FROM dataset where binary_10 > x'60';
|
||||
.output
|
||||
1
tests/normal-use/binary-gt/results.txt
Normal file
1
tests/normal-use/binary-gt/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
98
|
||||
2
tests/normal-use/binary-gte/query.sql
Normal file
2
tests/normal-use/binary-gte/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select rowid FROM dataset where binary_10 >= x'5F' order by 1;
|
||||
.output
|
||||
2
tests/normal-use/binary-gte/results.txt
Normal file
2
tests/normal-use/binary-gte/results.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
96
|
||||
98
|
||||
2
tests/normal-use/binary-lt/query.sql
Normal file
2
tests/normal-use/binary-lt/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select rowid FROM dataset where binary_10 < x'01';
|
||||
.output
|
||||
1
tests/normal-use/binary-lt/results.txt
Normal file
1
tests/normal-use/binary-lt/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
2
tests/normal-use/binary-lte/query.sql
Normal file
2
tests/normal-use/binary-lte/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select rowid FROM dataset where binary_10 <= x'01' order by 1;
|
||||
.output
|
||||
2
tests/normal-use/binary-lte/results.txt
Normal file
2
tests/normal-use/binary-lte/results.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
1
|
||||
2
|
||||
2
tests/normal-use/binary-rowid-and-ne/query.sql
Normal file
2
tests/normal-use/binary-rowid-and-ne/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select rowid FROM dataset where rowid = 2 and binary_10 <> x'01';
|
||||
.output
|
||||
0
tests/normal-use/binary-rowid-and-ne/results.txt
Normal file
0
tests/normal-use/binary-rowid-and-ne/results.txt
Normal file
2
tests/normal-use/blob-is-not-1/query.sql
Normal file
2
tests/normal-use/blob-is-not-1/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select quote(binary_9) from nulls where rowid = 2 and binary_9 is not X'00';
|
||||
.output
|
||||
1
tests/normal-use/blob-is-not-1/results.txt
Normal file
1
tests/normal-use/blob-is-not-1/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
X'0101'
|
||||
2
tests/normal-use/blob-is-not-2/query.sql
Normal file
2
tests/normal-use/blob-is-not-2/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select quote(binary_9) from nulls where rowid = 1 and binary_9 is not X'00';
|
||||
.output
|
||||
0
tests/normal-use/blob-is-not-2/results.txt
Normal file
0
tests/normal-use/blob-is-not-2/results.txt
Normal file
2
tests/normal-use/bool-where-bool/query.sql
Normal file
2
tests/normal-use/bool-where-bool/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-bool/results.txt
Normal file
1
tests/normal-use/bool-where-bool/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
5
|
||||
2
tests/normal-use/bool-where-eq-0/query.sql
Normal file
2
tests/normal-use/bool-where-eq-0/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 = 0;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-eq-0/results.txt
Normal file
1
tests/normal-use/bool-where-eq-0/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
44
|
||||
2
tests/normal-use/bool-where-eq-1/query.sql
Normal file
2
tests/normal-use/bool-where-eq-1/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 = 1;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-eq-1/results.txt
Normal file
1
tests/normal-use/bool-where-eq-1/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
5
|
||||
2
tests/normal-use/bool-where-gt-0/query.sql
Normal file
2
tests/normal-use/bool-where-gt-0/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 > 0;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-gt-0/results.txt
Normal file
1
tests/normal-use/bool-where-gt-0/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
5
|
||||
2
tests/normal-use/bool-where-gt-1/query.sql
Normal file
2
tests/normal-use/bool-where-gt-1/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 > 1;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-gt-1/results.txt
Normal file
1
tests/normal-use/bool-where-gt-1/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
2
tests/normal-use/bool-where-gte-0/query.sql
Normal file
2
tests/normal-use/bool-where-gte-0/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 >= 0;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-gte-0/results.txt
Normal file
1
tests/normal-use/bool-where-gte-0/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
49
|
||||
2
tests/normal-use/bool-where-lt-0/query.sql
Normal file
2
tests/normal-use/bool-where-lt-0/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 < 0;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-lt-0/results.txt
Normal file
1
tests/normal-use/bool-where-lt-0/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
2
tests/normal-use/bool-where-lt-1/query.sql
Normal file
2
tests/normal-use/bool-where-lt-1/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 < 1;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-lt-1/results.txt
Normal file
1
tests/normal-use/bool-where-lt-1/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
44
|
||||
2
tests/normal-use/bool-where-lte-1/query.sql
Normal file
2
tests/normal-use/bool-where-lte-1/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where bool_0 <= 1;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-lte-1/results.txt
Normal file
1
tests/normal-use/bool-where-lte-1/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
49
|
||||
2
tests/normal-use/bool-where-not-bool/query.sql
Normal file
2
tests/normal-use/bool-where-not-bool/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) FROM dataset where not bool_0;
|
||||
.output
|
||||
1
tests/normal-use/bool-where-not-bool/results.txt
Normal file
1
tests/normal-use/bool-where-not-bool/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
44
|
||||
2
tests/normal-use/cross-join-10-rowgroups/query.sql
Normal file
2
tests/normal-use/cross-join-10-rowgroups/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) from (select * FROM dataset t1, no_nulls2 t2);
|
||||
.output
|
||||
1
tests/normal-use/cross-join-10-rowgroups/results.txt
Normal file
1
tests/normal-use/cross-join-10-rowgroups/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
9801
|
||||
2
tests/normal-use/cross-join-count-1-rowgroup/query.sql
Normal file
2
tests/normal-use/cross-join-count-1-rowgroup/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) from (select * FROM dataset t1, no_nulls1 t2);
|
||||
.output
|
||||
1
tests/normal-use/cross-join-count-1-rowgroup/results.txt
Normal file
1
tests/normal-use/cross-join-count-1-rowgroup/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
9801
|
||||
2
tests/normal-use/double-eq-int/query.sql
Normal file
2
tests/normal-use/double-eq-int/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 = 99;
|
||||
.output
|
||||
1
tests/normal-use/double-eq-int/results.txt
Normal file
1
tests/normal-use/double-eq-int/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-eq-str/query.sql
Normal file
2
tests/normal-use/double-eq-str/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 = '99.0';
|
||||
.output
|
||||
1
tests/normal-use/double-eq-str/results.txt
Normal file
1
tests/normal-use/double-eq-str/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-eq/query.sql
Normal file
2
tests/normal-use/double-eq/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 = 99.0;
|
||||
.output
|
||||
1
tests/normal-use/double-eq/results.txt
Normal file
1
tests/normal-use/double-eq/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-gt-int/query.sql
Normal file
2
tests/normal-use/double-gt-int/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 > 98;
|
||||
.output
|
||||
1
tests/normal-use/double-gt-int/results.txt
Normal file
1
tests/normal-use/double-gt-int/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-gt-str/query.sql
Normal file
2
tests/normal-use/double-gt-str/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 > '98';
|
||||
.output
|
||||
1
tests/normal-use/double-gt-str/results.txt
Normal file
1
tests/normal-use/double-gt-str/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-gt/query.sql
Normal file
2
tests/normal-use/double-gt/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 > 98.0;
|
||||
.output
|
||||
1
tests/normal-use/double-gt/results.txt
Normal file
1
tests/normal-use/double-gt/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-gte-int/query.sql
Normal file
2
tests/normal-use/double-gte-int/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 >= '99';
|
||||
.output
|
||||
1
tests/normal-use/double-gte-int/results.txt
Normal file
1
tests/normal-use/double-gte-int/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-gte-str/query.sql
Normal file
2
tests/normal-use/double-gte-str/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 >= '49.5';
|
||||
.output
|
||||
2
tests/normal-use/double-gte-str/results.txt
Normal file
2
tests/normal-use/double-gte-str/results.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
99.00
|
||||
49.50
|
||||
2
tests/normal-use/double-gte/query.sql
Normal file
2
tests/normal-use/double-gte/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) as double_6 FROM dataset where double_6 >= 49.5;
|
||||
.output
|
||||
2
tests/normal-use/double-gte/results.txt
Normal file
2
tests/normal-use/double-gte/results.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
99.00
|
||||
49.50
|
||||
2
tests/normal-use/double-is-not-99/query.sql
Normal file
2
tests/normal-use/double-is-not-99/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) from nulls where double_6 is not 99.0;
|
||||
.output
|
||||
1
tests/normal-use/double-is-not-99/results.txt
Normal file
1
tests/normal-use/double-is-not-99/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
98
|
||||
2
tests/normal-use/double-is-not-null/query.sql
Normal file
2
tests/normal-use/double-is-not-null/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select count(*) from nulls where double_6 is not null;
|
||||
.output
|
||||
1
tests/normal-use/double-is-not-null/results.txt
Normal file
1
tests/normal-use/double-is-not-null/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
49
|
||||
2
tests/normal-use/double-lt-int/query.sql
Normal file
2
tests/normal-use/double-lt-int/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where double_6 < 99 order by double_6 desc limit 1;
|
||||
.output
|
||||
1
tests/normal-use/double-lt-int/results.txt
Normal file
1
tests/normal-use/double-lt-int/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
49.50
|
||||
2
tests/normal-use/double-lt-str/query.sql
Normal file
2
tests/normal-use/double-lt-str/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where double_6 < '99.0' order by double_6 desc limit 1;
|
||||
.output
|
||||
1
tests/normal-use/double-lt-str/results.txt
Normal file
1
tests/normal-use/double-lt-str/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
49.50
|
||||
2
tests/normal-use/double-lt/query.sql
Normal file
2
tests/normal-use/double-lt/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where double_6 < 99.0 order by double_6 desc limit 1;
|
||||
.output
|
||||
1
tests/normal-use/double-lt/results.txt
Normal file
1
tests/normal-use/double-lt/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
49.50
|
||||
2
tests/normal-use/double-lte-int/query.sql
Normal file
2
tests/normal-use/double-lte-int/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where double_6 <= 99 order by double_6 desc limit 1;
|
||||
.output
|
||||
1
tests/normal-use/double-lte-int/results.txt
Normal file
1
tests/normal-use/double-lte-int/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-lte-str/query.sql
Normal file
2
tests/normal-use/double-lte-str/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where double_6 <= '99.0' order by double_6 desc limit 1;
|
||||
.output
|
||||
1
tests/normal-use/double-lte-str/results.txt
Normal file
1
tests/normal-use/double-lte-str/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-lte/query.sql
Normal file
2
tests/normal-use/double-lte/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where double_6 <= 99.0 order by double_6 desc limit 1;
|
||||
.output
|
||||
1
tests/normal-use/double-lte/results.txt
Normal file
1
tests/normal-use/double-lte/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-rowid-and-field-ne-int/query.sql
Normal file
2
tests/normal-use/double-rowid-and-field-ne-int/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where rowid = 0 and double_6 <> 99;
|
||||
.output
|
||||
2
tests/normal-use/double-rowid-and-field-ne-str/query.sql
Normal file
2
tests/normal-use/double-rowid-and-field-ne-str/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where rowid = 0 and double_6 <> '99.0';
|
||||
.output
|
||||
2
tests/normal-use/double-rowid-and-field-ne/query.sql
Normal file
2
tests/normal-use/double-rowid-and-field-ne/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where rowid = 0 and double_6 <> 99.0;
|
||||
.output
|
||||
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where rowid = 1 and double_6 <> 100;
|
||||
.output
|
||||
@@ -0,0 +1 @@
|
||||
99.00
|
||||
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where rowid = 1 and double_6 <> '100';
|
||||
.output
|
||||
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/double-rowid-and-field-ne2/query.sql
Normal file
2
tests/normal-use/double-rowid-and-field-ne2/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select printf('%.2f', double_6) FROM dataset where rowid = 1 and double_6 <> 100.0;
|
||||
.output
|
||||
1
tests/normal-use/double-rowid-and-field-ne2/results.txt
Normal file
1
tests/normal-use/double-rowid-and-field-ne2/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99.00
|
||||
2
tests/normal-use/fixed-bytearray-eq/query.sql
Normal file
2
tests/normal-use/fixed-bytearray-eq/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
SELECT COUNT(*) FROM dataset WHERE binary_10 = X'10';
|
||||
.output
|
||||
1
tests/normal-use/fixed-bytearray-eq/results.txt
Normal file
1
tests/normal-use/fixed-bytearray-eq/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
2
tests/normal-use/fixed-bytearray-gt/query.sql
Normal file
2
tests/normal-use/fixed-bytearray-gt/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
SELECT COUNT(*) FROM dataset WHERE binary_10 > X'';
|
||||
.output
|
||||
1
tests/normal-use/fixed-bytearray-gt/results.txt
Normal file
1
tests/normal-use/fixed-bytearray-gt/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
99
|
||||
2
tests/normal-use/fixed-bytearray-gte/query.sql
Normal file
2
tests/normal-use/fixed-bytearray-gte/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
SELECT COUNT(*) FROM dataset WHERE binary_10 >= X'01';
|
||||
.output
|
||||
1
tests/normal-use/fixed-bytearray-gte/results.txt
Normal file
1
tests/normal-use/fixed-bytearray-gte/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
98
|
||||
2
tests/normal-use/fixed-bytearray-lt/query.sql
Normal file
2
tests/normal-use/fixed-bytearray-lt/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
SELECT COUNT(*) FROM dataset WHERE binary_10 < X'10';
|
||||
.output
|
||||
1
tests/normal-use/fixed-bytearray-lt/results.txt
Normal file
1
tests/normal-use/fixed-bytearray-lt/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
16
|
||||
2
tests/normal-use/fixed-bytearray-lte/query.sql
Normal file
2
tests/normal-use/fixed-bytearray-lte/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
SELECT COUNT(*) FROM dataset WHERE binary_10 <= X'10';
|
||||
.output
|
||||
1
tests/normal-use/fixed-bytearray-lte/results.txt
Normal file
1
tests/normal-use/fixed-bytearray-lte/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
17
|
||||
2
tests/normal-use/fixed-bytearray-ne/query.sql
Normal file
2
tests/normal-use/fixed-bytearray-ne/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
SELECT COUNT(*) FROM dataset WHERE binary_10 <> X'10';
|
||||
.output
|
||||
1
tests/normal-use/fixed-bytearray-ne/results.txt
Normal file
1
tests/normal-use/fixed-bytearray-ne/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
98
|
||||
2
tests/normal-use/float-eq/query.sql
Normal file
2
tests/normal-use/float-eq/query.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
select float_11 from nulls where float_11 = 1.0;
|
||||
.output
|
||||
1
tests/normal-use/float-eq/results.txt
Normal file
1
tests/normal-use/float-eq/results.txt
Normal file
@@ -0,0 +1 @@
|
||||
1.0
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user