diff --git a/tests/meson.build b/tests/meson.build index 0a26f7a..4fe689f 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -6,4 +6,170 @@ test('Load the extension', runner, args: files('NOTHING', 'NOTHING')+['0']) test('Try loading a non-existent file', runner, args: files('./segfault-safety/nonexistent-file.sql', 'NOTHING')+['1']) test('Try loading an unspecified file', runner, args: files('./segfault-safety/unspecified-file.sql', 'NOTHING')+['1']) test('Try loading an unsupported file', runner, args: files('NOTHING', 'NOTHING')+['1','unsupported']) -test('Load all supported test files', runner, args: files('./segfault-safety/load-valid-file/query.sql', './segfault-safety/load-valid-file/results.txt')+['0','no-nulls','nulls']) +test('Load all test files with nulls', runner, args: files('./segfault-safety/load-valid-file/query.sql', './segfault-safety/load-valid-file/results.nulls.txt')+['0','nulls']) +test('Load all test files without nulls', runner, args: files('./segfault-safety/load-valid-file/query.sql', './segfault-safety/load-valid-file/results.no-nulls.txt')+['0','no-nulls']) +test('Load all codec examples', runner, args: files('./segfault-safety/load-valid-file/query.sql', './segfault-safety/load-valid-file/results.codecs.txt')+['0','codecs']) + +test('table-scan-1-rowgroup', runner, args:files('normal-use/table-scan-1-rowgroup/query.sql', 'normal-use/table-scan-1-rowgroup/results.txt')+['0','nulls']) +test('cross-join-count-1-rowgroup', runner, args:files('normal-use/cross-join-count-1-rowgroup/query.sql', 'normal-use/cross-join-count-1-rowgroup/results.txt')+['0','nulls']) +test('cross-join-10-rowgroups', runner, args:files('normal-use/cross-join-10-rowgroups/query.sql', 'normal-use/cross-join-10-rowgroups/results.txt')+['0','nulls']) +test('rowid-1-rowgroup', runner, args:files('normal-use/rowid-1-rowgroup/query.sql', 'normal-use/rowid-1-rowgroup/results.txt')+['0','nulls']) +test('rowid-55-10-rowgroups', runner, args:files('normal-use/rowid-55-10-rowgroups/query.sql', 'normal-use/rowid-55-10-rowgroups/results.txt')+['0','nulls']) +test('nulls', runner, args:files('normal-use/nulls/query.sql', 'normal-use/nulls/results.txt')+['0','nulls']) +test('rowid-group-by', runner, args:files('normal-use/rowid-group-by/query.sql', 'normal-use/rowid-group-by/results.txt')+['0','nulls']) +test('order-by-string7', runner, args:files('normal-use/order-by-string7/query.sql', 'normal-use/order-by-string7/results.txt')+['0','nulls']) +test('order-by-string8', runner, args:files('normal-use/order-by-string8/query.sql', 'normal-use/order-by-string8/results.txt')+['0','nulls']) +test('string-7-is-null', runner, args:files('normal-use/string-7-is-null/query.sql', 'normal-use/string-7-is-null/results.txt')+['0','nulls']) +test('string-7-is-not-null', runner, args:files('normal-use/string-7-is-not-null/query.sql', 'normal-use/string-7-is-not-null/results.txt')+['0','nulls']) +test('nulls-like-percent-start', runner, args:files('normal-use/nulls-like-percent-start/query.sql', 'normal-use/nulls-like-percent-start/results.txt')+['0','nulls']) +test('nulls-like-no-match', runner, args:files('normal-use/nulls-like-no-match/query.sql', 'normal-use/nulls-like-no-match/results.txt')+['0','nulls']) +test('nulls-like-percent-end', runner, args:files('normal-use/nulls-like-percent-end/query.sql', 'normal-use/nulls-like-percent-end/results.txt')+['0','nulls']) +test('nulls-like-underscore', runner, args:files('normal-use/nulls-like-underscore/query.sql', 'normal-use/nulls-like-underscore/results.txt')+['0','nulls']) +test('string-gt-lt', runner, args:files('normal-use/string-gt-lt/query.sql', 'normal-use/string-gt-lt/results.txt')+['0','nulls']) +test('string-gte-lte', runner, args:files('normal-use/string-gte-lte/query.sql', 'normal-use/string-gte-lte/results.txt')+['0','nulls']) +test('string-eq', runner, args:files('normal-use/string-eq/query.sql', 'normal-use/string-eq/results.txt')+['0','nulls']) +test('rowid-and-field-eq', runner, args:files('normal-use/rowid-and-field-eq/query.sql', 'normal-use/rowid-and-field-eq/results.txt')+['0','nulls']) +test('rowid-and-field-ne', runner, args:files('normal-use/rowid-and-field-ne/query.sql', 'normal-use/rowid-and-field-ne/results.txt')+['0','nulls']) +test('int8-eq', runner, args:files('normal-use/int8-eq/query.sql', 'normal-use/int8-eq/results.txt')+['0','nulls']) +test('int8-lt', runner, args:files('normal-use/int8-lt/query.sql', 'normal-use/int8-lt/results.txt')+['0','nulls']) +test('int8-lte', runner, args:files('normal-use/int8-lte/query.sql', 'normal-use/int8-lte/results.txt')+['0','nulls']) +test('int8-gt', runner, args:files('normal-use/int8-gt/query.sql', 'normal-use/int8-gt/results.txt')+['0','nulls']) +test('int8-gte', runner, args:files('normal-use/int8-gte/query.sql', 'normal-use/int8-gte/results.txt')+['0','nulls']) +test('int8-rowid-eq-and-field-ne', runner, args:files('normal-use/int8-rowid-eq-and-field-ne/query.sql', 'normal-use/int8-rowid-eq-and-field-ne/results.txt')+['0','nulls']) +test('int64-gte', runner, args:files('normal-use/int64-gte/query.sql', 'normal-use/int64-gte/results.txt')+['0','nulls']) +test('int64-gt', runner, args:files('normal-use/int64-gt/query.sql', 'normal-use/int64-gt/results.txt')+['0','nulls']) +test('int64-eq', runner, args:files('normal-use/int64-eq/query.sql', 'normal-use/int64-eq/results.txt')+['0','nulls']) +test('int64-lt', runner, args:files('normal-use/int64-lt/query.sql', 'normal-use/int64-lt/results.txt')+['0','nulls']) +test('int64-lte', runner, args:files('normal-use/int64-lte/query.sql', 'normal-use/int64-lte/results.txt')+['0','nulls']) +test('int64-rowid-eq-and-field-ne', runner, args:files('normal-use/int64-rowid-eq-and-field-ne/query.sql', 'normal-use/int64-rowid-eq-and-field-ne/results.txt')+['0','nulls']) +test('int64-rowid-eq-and-field-ne2', runner, args:files('normal-use/int64-rowid-eq-and-field-ne2/query.sql', 'normal-use/int64-rowid-eq-and-field-ne2/results.txt')+['0','nulls']) +test('double-eq', runner, args:files('normal-use/double-eq/query.sql', 'normal-use/double-eq/results.txt')+['0','nulls']) +test('double-gt', runner, args:files('normal-use/double-gt/query.sql', 'normal-use/double-gt/results.txt')+['0','nulls']) +test('double-gte', runner, args:files('normal-use/double-gte/query.sql', 'normal-use/double-gte/results.txt')+['0','nulls']) +test('double-lt', runner, args:files('normal-use/double-lt/query.sql', 'normal-use/double-lt/results.txt')+['0','nulls']) +test('double-lte', runner, args:files('normal-use/double-lte/query.sql', 'normal-use/double-lte/results.txt')+['0','nulls']) +test('double-rowid-and-field-ne', runner, args:files('normal-use/double-rowid-and-field-ne/query.sql', 'normal-use/double-rowid-and-field-ne/results.txt')+['0','nulls']) +test('double-rowid-and-field-ne2', runner, args:files('normal-use/double-rowid-and-field-ne2/query.sql', 'normal-use/double-rowid-and-field-ne2/results.txt')+['0','nulls']) +test('binary-eq', runner, args:files('normal-use/binary-eq/query.sql', 'normal-use/binary-eq/results.txt')+['0','nulls']) +test('binary-rowid-and-ne', runner, args:files('normal-use/binary-rowid-and-ne/query.sql', 'normal-use/binary-rowid-and-ne/results.txt')+['0','nulls']) +test('binary-lt', runner, args:files('normal-use/binary-lt/query.sql', 'normal-use/binary-lt/results.txt')+['0','nulls']) +test('binary-lte', runner, args:files('normal-use/binary-lte/query.sql', 'normal-use/binary-lte/results.txt')+['0','nulls']) +test('binary-gt', runner, args:files('normal-use/binary-gt/query.sql', 'normal-use/binary-gt/results.txt')+['0','nulls']) +test('binary-gte', runner, args:files('normal-use/binary-gte/query.sql', 'normal-use/binary-gte/results.txt')+['0','nulls']) +test('unusable-constraint', runner, args:files('normal-use/unusable-constraint/query.sql', 'normal-use/unusable-constraint/results.txt')+['0','nulls']) +test('rowid-gt-none', runner, args:files('normal-use/rowid-gt-none/query.sql', 'normal-use/rowid-gt-none/results.txt')+['0','nulls']) +test('rowid-gte-none', runner, args:files('normal-use/rowid-gte-none/query.sql', 'normal-use/rowid-gte-none/results.txt')+['0','nulls']) +test('rowid-lt-none', runner, args:files('normal-use/rowid-lt-none/query.sql', 'normal-use/rowid-lt-none/results.txt')+['0','nulls']) +test('rowid-lte-none', runner, args:files('normal-use/rowid-lte-none/query.sql', 'normal-use/rowid-lte-none/results.txt')+['0','nulls']) +test('rowid-lte-one', runner, args:files('normal-use/rowid-lte-one/query.sql', 'normal-use/rowid-lte-one/results.txt')+['0','nulls']) +test('rowid-lt-one', runner, args:files('normal-use/rowid-lt-one/query.sql', 'normal-use/rowid-lt-one/results.txt')+['0','nulls']) +test('rowid-ne-some', runner, args:files('normal-use/rowid-ne-some/query.sql', 'normal-use/rowid-ne-some/results.txt')+['0','nulls']) +test('nulls-from-no-null', runner, args:files('normal-use/nulls-from-no-null/query.sql', 'normal-use/nulls-from-no-null/results.txt')+['0','nulls']) +test('rowid-is-not-null', runner, args:files('normal-use/rowid-is-not-null/query.sql', 'normal-use/rowid-is-not-null/results.txt')+['0','nulls']) +test('rowid-eq-string', runner, args:files('normal-use/rowid-eq-string/query.sql', 'normal-use/rowid-eq-string/results.txt')+['0','nulls']) +test('rowid-double', runner, args:files('normal-use/rowid-double/query.sql', 'normal-use/rowid-double/results.txt')+['0','nulls']) +test('string-eq-int', runner, args:files('normal-use/string-eq-int/query.sql', 'normal-use/string-eq-int/results.txt')+['0','nulls']) +test('string-eq-double', runner, args:files('normal-use/string-eq-double/query.sql', 'normal-use/string-eq-double/results.txt')+['0','nulls']) +test('int8-eq-double', runner, args:files('normal-use/int8-eq-double/query.sql', 'normal-use/int8-eq-double/results.txt')+['0','nulls']) +test('int8-eq-str', runner, args:files('normal-use/int8-eq-str/query.sql', 'normal-use/int8-eq-str/results.txt')+['0','nulls']) +test('int8-eq-str2', runner, args:files('normal-use/int8-eq-str2/query.sql', 'normal-use/int8-eq-str2/results.txt')+['0','nulls']) +test('int8-eq-bogus-str', runner, args:files('normal-use/int8-eq-bogus-str/query.sql', 'normal-use/int8-eq-bogus-str/results.txt')+['0','nulls']) +test('int8-lt-str', runner, args:files('normal-use/int8-lt-str/query.sql', 'normal-use/int8-lt-str/results.txt')+['0','nulls']) +test('int8-lt-double', runner, args:files('normal-use/int8-lt-double/query.sql', 'normal-use/int8-lt-double/results.txt')+['0','nulls']) +test('int8-lte-str', runner, args:files('normal-use/int8-lte-str/query.sql', 'normal-use/int8-lte-str/results.txt')+['0','nulls']) +test('int8-lte-double', runner, args:files('normal-use/int8-lte-double/query.sql', 'normal-use/int8-lte-double/results.txt')+['0','nulls']) +test('int8-gt-str', runner, args:files('normal-use/int8-gt-str/query.sql', 'normal-use/int8-gt-str/results.txt')+['0','nulls']) +test('int8-gt-double', runner, args:files('normal-use/int8-gt-double/query.sql', 'normal-use/int8-gt-double/results.txt')+['0','nulls']) +test('int8-gte-str', runner, args:files('normal-use/int8-gte-str/query.sql', 'normal-use/int8-gte-str/results.txt')+['0','nulls']) +test('int8-gte-double', runner, args:files('normal-use/int8-gte-double/query.sql', 'normal-use/int8-gte-double/results.txt')+['0','nulls']) +test('int8-ne-str', runner, args:files('normal-use/int8-ne-str/query.sql', 'normal-use/int8-ne-str/results.txt')+['0','nulls']) +test('int8-ne-double', runner, args:files('normal-use/int8-ne-double/query.sql', 'normal-use/int8-ne-double/results.txt')+['0','nulls']) +test('int64-gte-str', runner, args:files('normal-use/int64-gte-str/query.sql', 'normal-use/int64-gte-str/results.txt')+['0','nulls']) +test('int64-gte-double', runner, args:files('normal-use/int64-gte-double/query.sql', 'normal-use/int64-gte-double/results.txt')+['0','nulls']) +test('int65-gt-str', runner, args:files('normal-use/int65-gt-str/query.sql', 'normal-use/int65-gt-str/results.txt')+['0','nulls']) +test('int65-gt-double', runner, args:files('normal-use/int65-gt-double/query.sql', 'normal-use/int65-gt-double/results.txt')+['0','nulls']) +test('int64-eq-str', runner, args:files('normal-use/int64-eq-str/query.sql', 'normal-use/int64-eq-str/results.txt')+['0','nulls']) +test('int64-eq-double', runner, args:files('normal-use/int64-eq-double/query.sql', 'normal-use/int64-eq-double/results.txt')+['0','nulls']) +test('int64-lt-str', runner, args:files('normal-use/int64-lt-str/query.sql', 'normal-use/int64-lt-str/results.txt')+['0','nulls']) +test('int64-lt-double', runner, args:files('normal-use/int64-lt-double/query.sql', 'normal-use/int64-lt-double/results.txt')+['0','nulls']) +test('int64-lte-str', runner, args:files('normal-use/int64-lte-str/query.sql', 'normal-use/int64-lte-str/results.txt')+['0','nulls']) +test('int64-lte-double', runner, args:files('normal-use/int64-lte-double/query.sql', 'normal-use/int64-lte-double/results.txt')+['0','nulls']) +test('int64-ne-str', runner, args:files('normal-use/int64-ne-str/query.sql', 'normal-use/int64-ne-str/results.txt')+['0','nulls']) +test('int64-ne-double', runner, args:files('normal-use/int64-ne-double/query.sql', 'normal-use/int64-ne-double/results.txt')+['0','nulls']) +test('int64-ne-some-str', runner, args:files('normal-use/int64-ne-some-str/query.sql', 'normal-use/int64-ne-some-str/results.txt')+['0','nulls']) +test('int64-ne-some-double', runner, args:files('normal-use/int64-ne-some-double/query.sql', 'normal-use/int64-ne-some-double/results.txt')+['0','nulls']) +test('double-eq-str', runner, args:files('normal-use/double-eq-str/query.sql', 'normal-use/double-eq-str/results.txt')+['0','nulls']) +test('double-eq-int', runner, args:files('normal-use/double-eq-int/query.sql', 'normal-use/double-eq-int/results.txt')+['0','nulls']) +test('double-gt-str', runner, args:files('normal-use/double-gt-str/query.sql', 'normal-use/double-gt-str/results.txt')+['0','nulls']) +test('double-gt-int', runner, args:files('normal-use/double-gt-int/query.sql', 'normal-use/double-gt-int/results.txt')+['0','nulls']) +test('double-gte-str', runner, args:files('normal-use/double-gte-str/query.sql', 'normal-use/double-gte-str/results.txt')+['0','nulls']) +test('double-gte-int', runner, args:files('normal-use/double-gte-int/query.sql', 'normal-use/double-gte-int/results.txt')+['0','nulls']) +test('double-lt-str', runner, args:files('normal-use/double-lt-str/query.sql', 'normal-use/double-lt-str/results.txt')+['0','nulls']) +test('double-lt-int', runner, args:files('normal-use/double-lt-int/query.sql', 'normal-use/double-lt-int/results.txt')+['0','nulls']) +test('double-lte-str', runner, args:files('normal-use/double-lte-str/query.sql', 'normal-use/double-lte-str/results.txt')+['0','nulls']) +test('double-lte-int', runner, args:files('normal-use/double-lte-int/query.sql', 'normal-use/double-lte-int/results.txt')+['0','nulls']) +test('double-rowid-and-field-ne-str', runner, args:files('normal-use/double-rowid-and-field-ne-str/query.sql', 'normal-use/double-rowid-and-field-ne-str/results.txt')+['0','nulls']) +test('double-rowid-and-field-ne-int', runner, args:files('normal-use/double-rowid-and-field-ne-int/query.sql', 'normal-use/double-rowid-and-field-ne-int/results.txt')+['0','nulls']) +test('double-rowid-and-field-ne2-some-str', runner, args:files('normal-use/double-rowid-and-field-ne2-some-str/query.sql', 'normal-use/double-rowid-and-field-ne2-some-str/results.txt')+['0','nulls']) +test('double-rowid-and-field-ne2-some-int', runner, args:files('normal-use/double-rowid-and-field-ne2-some-int/query.sql', 'normal-use/double-rowid-and-field-ne2-some-int/results.txt')+['0','nulls']) +test('rowid-gte-0', runner, args:files('normal-use/rowid-gte-0/query.sql', 'normal-use/rowid-gte-0/results.txt')+['0','nulls']) +test('rowid-gt-0', runner, args:files('normal-use/rowid-gt-0/query.sql', 'normal-use/rowid-gt-0/results.txt')+['0','nulls']) +test('bool-where-eq-0', runner, args:files('normal-use/bool-where-eq-0/query.sql', 'normal-use/bool-where-eq-0/results.txt')+['0','nulls']) +test('bool-where-eq-1', runner, args:files('normal-use/bool-where-eq-1/query.sql', 'normal-use/bool-where-eq-1/results.txt')+['0','nulls']) +test('bool-where-bool', runner, args:files('normal-use/bool-where-bool/query.sql', 'normal-use/bool-where-bool/results.txt')+['0','nulls']) +test('bool-where-not-bool', runner, args:files('normal-use/bool-where-not-bool/query.sql', 'normal-use/bool-where-not-bool/results.txt')+['0','nulls']) +test('bool-where-gt-0', runner, args:files('normal-use/bool-where-gt-0/query.sql', 'normal-use/bool-where-gt-0/results.txt')+['0','nulls']) +test('bool-where-gte-0', runner, args:files('normal-use/bool-where-gte-0/query.sql', 'normal-use/bool-where-gte-0/results.txt')+['0','nulls']) +test('bool-where-gt-1', runner, args:files('normal-use/bool-where-gt-1/query.sql', 'normal-use/bool-where-gt-1/results.txt')+['0','nulls']) +test('bool-where-lt-0', runner, args:files('normal-use/bool-where-lt-0/query.sql', 'normal-use/bool-where-lt-0/results.txt')+['0','nulls']) +test('bool-where-lt-1', runner, args:files('normal-use/bool-where-lt-1/query.sql', 'normal-use/bool-where-lt-1/results.txt')+['0','nulls']) +test('bool-where-lte-1', runner, args:files('normal-use/bool-where-lte-1/query.sql', 'normal-use/bool-where-lte-1/results.txt')+['0','nulls']) +test('ts-eq-july-20', runner, args:files('normal-use/ts-eq-july-20/query.sql', 'normal-use/ts-eq-july-20/results.txt')+['0','nulls']) +test('ts-lt-july-20', runner, args:files('normal-use/ts-lt-july-20/query.sql', 'normal-use/ts-lt-july-20/results.txt')+['0','nulls']) +test('ts-lte-july-20', runner, args:files('normal-use/ts-lte-july-20/query.sql', 'normal-use/ts-lte-july-20/results.txt')+['0','nulls']) +test('ts-gt-july-20', runner, args:files('normal-use/ts-gt-july-20/query.sql', 'normal-use/ts-gt-july-20/results.txt')+['0','nulls']) +test('ts-gte-july-20', runner, args:files('normal-use/ts-gte-july-20/query.sql', 'normal-use/ts-gte-july-20/results.txt')+['0','nulls']) +test('ts-ne-july-20', runner, args:files('normal-use/ts-ne-july-20/query.sql', 'normal-use/ts-ne-july-20/results.txt')+['0','nulls']) +test('fixed-bytearray-eq', runner, args:files('normal-use/fixed-bytearray-eq/query.sql', 'normal-use/fixed-bytearray-eq/results.txt')+['0','nulls']) +test('fixed-bytearray-lt', runner, args:files('normal-use/fixed-bytearray-lt/query.sql', 'normal-use/fixed-bytearray-lt/results.txt')+['0','nulls']) +test('fixed-bytearray-lte', runner, args:files('normal-use/fixed-bytearray-lte/query.sql', 'normal-use/fixed-bytearray-lte/results.txt')+['0','nulls']) +test('fixed-bytearray-gt', runner, args:files('normal-use/fixed-bytearray-gt/query.sql', 'normal-use/fixed-bytearray-gt/results.txt')+['0','nulls']) +test('fixed-bytearray-gte', runner, args:files('normal-use/fixed-bytearray-gte/query.sql', 'normal-use/fixed-bytearray-gte/results.txt')+['0','nulls']) +test('fixed-bytearray-ne', runner, args:files('normal-use/fixed-bytearray-ne/query.sql', 'normal-use/fixed-bytearray-ne/results.txt')+['0','nulls']) +test('var-bytearray-eq', runner, args:files('normal-use/var-bytearray-eq/query.sql', 'normal-use/var-bytearray-eq/results.txt')+['0','nulls']) +test('var-bytearray-lt', runner, args:files('normal-use/var-bytearray-lt/query.sql', 'normal-use/var-bytearray-lt/results.txt')+['0','nulls']) +test('var-bytearray-lte', runner, args:files('normal-use/var-bytearray-lte/query.sql', 'normal-use/var-bytearray-lte/results.txt')+['0','nulls']) +test('var-bytearray-gt', runner, args:files('normal-use/var-bytearray-gt/query.sql', 'normal-use/var-bytearray-gt/results.txt')+['0','nulls']) +test('var-bytearray-gte', runner, args:files('normal-use/var-bytearray-gte/query.sql', 'normal-use/var-bytearray-gte/results.txt')+['0','nulls']) +test('var-bytearray-ne', runner, args:files('normal-use/var-bytearray-ne/query.sql', 'normal-use/var-bytearray-ne/results.txt')+['0','nulls']) +test('string-lte', runner, args:files('normal-use/string-lte/query.sql', 'normal-use/string-lte/results.txt')+['0','nulls']) +test('random-testcase-1', runner, args:files('normal-use/random-testcase-1/query.sql', 'normal-use/random-testcase-1/results.txt')+['0','nulls']) +test('random-testcase-2', runner, args:files('normal-use/random-testcase-2/query.sql', 'normal-use/random-testcase-2/results.txt')+['0','nulls']) +test('random-testcase-3', runner, args:files('normal-use/random-testcase-3/query.sql', 'normal-use/random-testcase-3/results.txt')+['0','nulls']) +test('rowid-is-null', runner, args:files('normal-use/rowid-is-null/query.sql', 'normal-use/rowid-is-null/results.txt')+['0','nulls']) +test('float-eq', runner, args:files('normal-use/float-eq/query.sql', 'normal-use/float-eq/results.txt')+['0','nulls']) +test('float-eq2', runner, args:files('normal-use/float-eq2/query.sql', 'normal-use/float-eq2/results.txt')+['0','nulls']) +test('float-eq3', runner, args:files('normal-use/float-eq3/query.sql', 'normal-use/float-eq3/results.txt')+['0','nulls']) +test('float-ne', runner, args:files('normal-use/float-ne/query.sql', 'normal-use/float-ne/results.txt')+['0','nulls']) +test('float-is-null', runner, args:files('normal-use/float-is-null/query.sql', 'normal-use/float-is-null/results.txt')+['0','nulls']) +test('float-is-not-null', runner, args:files('normal-use/float-is-not-null/query.sql', 'normal-use/float-is-not-null/results.txt')+['0','nulls']) +test('float-gte', runner, args:files('normal-use/float-gte/query.sql', 'normal-use/float-gte/results.txt')+['0','nulls']) +test('float-gt', runner, args:files('normal-use/float-gt/query.sql', 'normal-use/float-gt/results.txt')+['0','nulls']) +test('float-gt-2', runner, args:files('normal-use/float-gt-2/query.sql', 'normal-use/float-gt-2/results.txt')+['0','nulls']) +test('float-lt-1', runner, args:files('normal-use/float-lt-1/query.sql', 'normal-use/float-lt-1/results.txt')+['0','nulls']) +test('float-lt-2', runner, args:files('normal-use/float-lt-2/query.sql', 'normal-use/float-lt-2/results.txt')+['0','nulls']) +test('float-lte', runner, args:files('normal-use/float-lte/query.sql', 'normal-use/float-lte/results.txt')+['0','nulls']) +test('float-skip', runner, args:files('normal-use/float-skip/query.sql', 'normal-use/float-skip/results.txt')+['0','nulls']) +test('glob', runner, args:files('normal-use/glob/query.sql', 'normal-use/glob/results.txt')+['0','nulls']) +test('glob-star-1', runner, args:files('normal-use/glob-star-1/query.sql', 'normal-use/glob-star-1/results.txt')+['0','nulls']) +test('glob-star-eight', runner, args:files('normal-use/glob-star-eight/query.sql', 'normal-use/glob-star-eight/results.txt')+['0','nulls']) +test('glob-star-zero', runner, args:files('normal-use/glob-star-zero/query.sql', 'normal-use/glob-star-zero/results.txt')+['0','nulls']) +test('glob-star-2', runner, args:files('normal-use/glob-star-2/query.sql', 'normal-use/glob-star-2/results.txt')+['0','nulls']) +test('glob-star-stuff', runner, args:files('normal-use/glob-star-stuff/query.sql', 'normal-use/glob-star-stuff/results.txt')+['0','nulls']) +test('like-long', runner, args:files('normal-use/like-long/query.sql', 'normal-use/like-long/results.txt')+['0','nulls']) +test('blob-is-not-1', runner, args:files('normal-use/blob-is-not-1/query.sql', 'normal-use/blob-is-not-1/results.txt')+['0','nulls']) +test('blob-is-not-2', runner, args:files('normal-use/blob-is-not-2/query.sql', 'normal-use/blob-is-not-2/results.txt')+['0','nulls']) +test('not-null', runner, args:files('normal-use/not-null/query.sql', 'normal-use/not-null/results.txt')+['0','nulls']) +test('not-not-null', runner, args:files('normal-use/not-not-null/query.sql', 'normal-use/not-not-null/results.txt')+['0','nulls']) +test('double-is-not-null', runner, args:files('normal-use/double-is-not-null/query.sql', 'normal-use/double-is-not-null/results.txt')+['0','nulls']) +test('double-is-not-99', runner, args:files('normal-use/double-is-not-99/query.sql', 'normal-use/double-is-not-99/results.txt')+['0','nulls']) diff --git a/tests/normal-use/binary-eq/query.sql b/tests/normal-use/binary-eq/query.sql new file mode 100644 index 0000000..0bf1e3f --- /dev/null +++ b/tests/normal-use/binary-eq/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where binary_10 = x'01'; +.output diff --git a/tests/normal-use/binary-eq/results.txt b/tests/normal-use/binary-eq/results.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/tests/normal-use/binary-eq/results.txt @@ -0,0 +1 @@ +2 diff --git a/tests/normal-use/binary-gt/query.sql b/tests/normal-use/binary-gt/query.sql new file mode 100644 index 0000000..c808fbf --- /dev/null +++ b/tests/normal-use/binary-gt/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where binary_10 > x'60'; +.output diff --git a/tests/normal-use/binary-gt/results.txt b/tests/normal-use/binary-gt/results.txt new file mode 100644 index 0000000..6529ff8 --- /dev/null +++ b/tests/normal-use/binary-gt/results.txt @@ -0,0 +1 @@ +98 diff --git a/tests/normal-use/binary-gte/query.sql b/tests/normal-use/binary-gte/query.sql new file mode 100644 index 0000000..206eb01 --- /dev/null +++ b/tests/normal-use/binary-gte/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where binary_10 >= x'5F' order by 1; +.output diff --git a/tests/normal-use/binary-gte/results.txt b/tests/normal-use/binary-gte/results.txt new file mode 100644 index 0000000..b70bfd3 --- /dev/null +++ b/tests/normal-use/binary-gte/results.txt @@ -0,0 +1,2 @@ +96 +98 diff --git a/tests/normal-use/binary-lt/query.sql b/tests/normal-use/binary-lt/query.sql new file mode 100644 index 0000000..2c7e166 --- /dev/null +++ b/tests/normal-use/binary-lt/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where binary_10 < x'01'; +.output diff --git a/tests/normal-use/binary-lt/results.txt b/tests/normal-use/binary-lt/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/binary-lt/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/binary-lte/query.sql b/tests/normal-use/binary-lte/query.sql new file mode 100644 index 0000000..e80b3fc --- /dev/null +++ b/tests/normal-use/binary-lte/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where binary_10 <= x'01' order by 1; +.output diff --git a/tests/normal-use/binary-lte/results.txt b/tests/normal-use/binary-lte/results.txt new file mode 100644 index 0000000..1191247 --- /dev/null +++ b/tests/normal-use/binary-lte/results.txt @@ -0,0 +1,2 @@ +1 +2 diff --git a/tests/normal-use/binary-rowid-and-ne/query.sql b/tests/normal-use/binary-rowid-and-ne/query.sql new file mode 100644 index 0000000..8f9c229 --- /dev/null +++ b/tests/normal-use/binary-rowid-and-ne/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where rowid = 2 and binary_10 <> x'01'; +.output diff --git a/tests/normal-use/binary-rowid-and-ne/results.txt b/tests/normal-use/binary-rowid-and-ne/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/blob-is-not-1/query.sql b/tests/normal-use/blob-is-not-1/query.sql new file mode 100644 index 0000000..8510b1c --- /dev/null +++ b/tests/normal-use/blob-is-not-1/query.sql @@ -0,0 +1,2 @@ +select quote(binary_9) from nulls where rowid = 2 and binary_9 is not X'00'; +.output diff --git a/tests/normal-use/blob-is-not-1/results.txt b/tests/normal-use/blob-is-not-1/results.txt new file mode 100644 index 0000000..6fac1a2 --- /dev/null +++ b/tests/normal-use/blob-is-not-1/results.txt @@ -0,0 +1 @@ +X'0101' diff --git a/tests/normal-use/blob-is-not-2/query.sql b/tests/normal-use/blob-is-not-2/query.sql new file mode 100644 index 0000000..cbce3e1 --- /dev/null +++ b/tests/normal-use/blob-is-not-2/query.sql @@ -0,0 +1,2 @@ +select quote(binary_9) from nulls where rowid = 1 and binary_9 is not X'00'; +.output diff --git a/tests/normal-use/blob-is-not-2/results.txt b/tests/normal-use/blob-is-not-2/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/bool-where-bool/query.sql b/tests/normal-use/bool-where-bool/query.sql new file mode 100644 index 0000000..edb7d5a --- /dev/null +++ b/tests/normal-use/bool-where-bool/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0; +.output diff --git a/tests/normal-use/bool-where-bool/results.txt b/tests/normal-use/bool-where-bool/results.txt new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/tests/normal-use/bool-where-bool/results.txt @@ -0,0 +1 @@ +5 diff --git a/tests/normal-use/bool-where-eq-0/query.sql b/tests/normal-use/bool-where-eq-0/query.sql new file mode 100644 index 0000000..8388d51 --- /dev/null +++ b/tests/normal-use/bool-where-eq-0/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 = 0; +.output diff --git a/tests/normal-use/bool-where-eq-0/results.txt b/tests/normal-use/bool-where-eq-0/results.txt new file mode 100644 index 0000000..c739b42 --- /dev/null +++ b/tests/normal-use/bool-where-eq-0/results.txt @@ -0,0 +1 @@ +44 diff --git a/tests/normal-use/bool-where-eq-1/query.sql b/tests/normal-use/bool-where-eq-1/query.sql new file mode 100644 index 0000000..426b6b6 --- /dev/null +++ b/tests/normal-use/bool-where-eq-1/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 = 1; +.output diff --git a/tests/normal-use/bool-where-eq-1/results.txt b/tests/normal-use/bool-where-eq-1/results.txt new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/tests/normal-use/bool-where-eq-1/results.txt @@ -0,0 +1 @@ +5 diff --git a/tests/normal-use/bool-where-gt-0/query.sql b/tests/normal-use/bool-where-gt-0/query.sql new file mode 100644 index 0000000..ac53d3e --- /dev/null +++ b/tests/normal-use/bool-where-gt-0/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 > 0; +.output diff --git a/tests/normal-use/bool-where-gt-0/results.txt b/tests/normal-use/bool-where-gt-0/results.txt new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/tests/normal-use/bool-where-gt-0/results.txt @@ -0,0 +1 @@ +5 diff --git a/tests/normal-use/bool-where-gt-1/query.sql b/tests/normal-use/bool-where-gt-1/query.sql new file mode 100644 index 0000000..e85daea --- /dev/null +++ b/tests/normal-use/bool-where-gt-1/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 > 1; +.output diff --git a/tests/normal-use/bool-where-gt-1/results.txt b/tests/normal-use/bool-where-gt-1/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/bool-where-gt-1/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/bool-where-gte-0/query.sql b/tests/normal-use/bool-where-gte-0/query.sql new file mode 100644 index 0000000..468fcc4 --- /dev/null +++ b/tests/normal-use/bool-where-gte-0/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 >= 0; +.output diff --git a/tests/normal-use/bool-where-gte-0/results.txt b/tests/normal-use/bool-where-gte-0/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/bool-where-gte-0/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/bool-where-lt-0/query.sql b/tests/normal-use/bool-where-lt-0/query.sql new file mode 100644 index 0000000..36e858a --- /dev/null +++ b/tests/normal-use/bool-where-lt-0/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 < 0; +.output diff --git a/tests/normal-use/bool-where-lt-0/results.txt b/tests/normal-use/bool-where-lt-0/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/bool-where-lt-0/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/bool-where-lt-1/query.sql b/tests/normal-use/bool-where-lt-1/query.sql new file mode 100644 index 0000000..f79ac81 --- /dev/null +++ b/tests/normal-use/bool-where-lt-1/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 < 1; +.output diff --git a/tests/normal-use/bool-where-lt-1/results.txt b/tests/normal-use/bool-where-lt-1/results.txt new file mode 100644 index 0000000..c739b42 --- /dev/null +++ b/tests/normal-use/bool-where-lt-1/results.txt @@ -0,0 +1 @@ +44 diff --git a/tests/normal-use/bool-where-lte-1/query.sql b/tests/normal-use/bool-where-lte-1/query.sql new file mode 100644 index 0000000..b2df3b7 --- /dev/null +++ b/tests/normal-use/bool-where-lte-1/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where bool_0 <= 1; +.output diff --git a/tests/normal-use/bool-where-lte-1/results.txt b/tests/normal-use/bool-where-lte-1/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/bool-where-lte-1/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/bool-where-not-bool/query.sql b/tests/normal-use/bool-where-not-bool/query.sql new file mode 100644 index 0000000..71d2917 --- /dev/null +++ b/tests/normal-use/bool-where-not-bool/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where not bool_0; +.output diff --git a/tests/normal-use/bool-where-not-bool/results.txt b/tests/normal-use/bool-where-not-bool/results.txt new file mode 100644 index 0000000..c739b42 --- /dev/null +++ b/tests/normal-use/bool-where-not-bool/results.txt @@ -0,0 +1 @@ +44 diff --git a/tests/normal-use/cross-join-10-rowgroups/query.sql b/tests/normal-use/cross-join-10-rowgroups/query.sql new file mode 100644 index 0000000..9d8e7f4 --- /dev/null +++ b/tests/normal-use/cross-join-10-rowgroups/query.sql @@ -0,0 +1,2 @@ +select count(*) from (select * FROM dataset t1, no_nulls2 t2); +.output diff --git a/tests/normal-use/cross-join-10-rowgroups/results.txt b/tests/normal-use/cross-join-10-rowgroups/results.txt new file mode 100644 index 0000000..50e1196 --- /dev/null +++ b/tests/normal-use/cross-join-10-rowgroups/results.txt @@ -0,0 +1 @@ +9801 diff --git a/tests/normal-use/cross-join-count-1-rowgroup/query.sql b/tests/normal-use/cross-join-count-1-rowgroup/query.sql new file mode 100644 index 0000000..c0c937a --- /dev/null +++ b/tests/normal-use/cross-join-count-1-rowgroup/query.sql @@ -0,0 +1,2 @@ +select count(*) from (select * FROM dataset t1, no_nulls1 t2); +.output diff --git a/tests/normal-use/cross-join-count-1-rowgroup/results.txt b/tests/normal-use/cross-join-count-1-rowgroup/results.txt new file mode 100644 index 0000000..50e1196 --- /dev/null +++ b/tests/normal-use/cross-join-count-1-rowgroup/results.txt @@ -0,0 +1 @@ +9801 diff --git a/tests/normal-use/double-eq-int/query.sql b/tests/normal-use/double-eq-int/query.sql new file mode 100644 index 0000000..4254f30 --- /dev/null +++ b/tests/normal-use/double-eq-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 = 99; +.output diff --git a/tests/normal-use/double-eq-int/results.txt b/tests/normal-use/double-eq-int/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-eq-int/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-eq-str/query.sql b/tests/normal-use/double-eq-str/query.sql new file mode 100644 index 0000000..799dee4 --- /dev/null +++ b/tests/normal-use/double-eq-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 = '99.0'; +.output diff --git a/tests/normal-use/double-eq-str/results.txt b/tests/normal-use/double-eq-str/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-eq-str/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-eq/query.sql b/tests/normal-use/double-eq/query.sql new file mode 100644 index 0000000..b9bd0e3 --- /dev/null +++ b/tests/normal-use/double-eq/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 = 99.0; +.output diff --git a/tests/normal-use/double-eq/results.txt b/tests/normal-use/double-eq/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-eq/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-gt-int/query.sql b/tests/normal-use/double-gt-int/query.sql new file mode 100644 index 0000000..951ec1d --- /dev/null +++ b/tests/normal-use/double-gt-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 > 98; +.output diff --git a/tests/normal-use/double-gt-int/results.txt b/tests/normal-use/double-gt-int/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-gt-int/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-gt-str/query.sql b/tests/normal-use/double-gt-str/query.sql new file mode 100644 index 0000000..c594727 --- /dev/null +++ b/tests/normal-use/double-gt-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 > '98'; +.output diff --git a/tests/normal-use/double-gt-str/results.txt b/tests/normal-use/double-gt-str/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-gt-str/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-gt/query.sql b/tests/normal-use/double-gt/query.sql new file mode 100644 index 0000000..1e9df7d --- /dev/null +++ b/tests/normal-use/double-gt/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 > 98.0; +.output diff --git a/tests/normal-use/double-gt/results.txt b/tests/normal-use/double-gt/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-gt/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-gte-int/query.sql b/tests/normal-use/double-gte-int/query.sql new file mode 100644 index 0000000..488196d --- /dev/null +++ b/tests/normal-use/double-gte-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 >= '99'; +.output diff --git a/tests/normal-use/double-gte-int/results.txt b/tests/normal-use/double-gte-int/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-gte-int/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-gte-str/query.sql b/tests/normal-use/double-gte-str/query.sql new file mode 100644 index 0000000..bf29d25 --- /dev/null +++ b/tests/normal-use/double-gte-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 >= '49.5'; +.output diff --git a/tests/normal-use/double-gte-str/results.txt b/tests/normal-use/double-gte-str/results.txt new file mode 100644 index 0000000..a0818ef --- /dev/null +++ b/tests/normal-use/double-gte-str/results.txt @@ -0,0 +1,2 @@ +99.00 +49.50 diff --git a/tests/normal-use/double-gte/query.sql b/tests/normal-use/double-gte/query.sql new file mode 100644 index 0000000..de47e63 --- /dev/null +++ b/tests/normal-use/double-gte/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) as double_6 FROM dataset where double_6 >= 49.5; +.output diff --git a/tests/normal-use/double-gte/results.txt b/tests/normal-use/double-gte/results.txt new file mode 100644 index 0000000..a0818ef --- /dev/null +++ b/tests/normal-use/double-gte/results.txt @@ -0,0 +1,2 @@ +99.00 +49.50 diff --git a/tests/normal-use/double-is-not-99/query.sql b/tests/normal-use/double-is-not-99/query.sql new file mode 100644 index 0000000..bbadc7f --- /dev/null +++ b/tests/normal-use/double-is-not-99/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where double_6 is not 99.0; +.output diff --git a/tests/normal-use/double-is-not-99/results.txt b/tests/normal-use/double-is-not-99/results.txt new file mode 100644 index 0000000..6529ff8 --- /dev/null +++ b/tests/normal-use/double-is-not-99/results.txt @@ -0,0 +1 @@ +98 diff --git a/tests/normal-use/double-is-not-null/query.sql b/tests/normal-use/double-is-not-null/query.sql new file mode 100644 index 0000000..e81b453 --- /dev/null +++ b/tests/normal-use/double-is-not-null/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where double_6 is not null; +.output diff --git a/tests/normal-use/double-is-not-null/results.txt b/tests/normal-use/double-is-not-null/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/double-is-not-null/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/double-lt-int/query.sql b/tests/normal-use/double-lt-int/query.sql new file mode 100644 index 0000000..7e2a1b1 --- /dev/null +++ b/tests/normal-use/double-lt-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where double_6 < 99 order by double_6 desc limit 1; +.output diff --git a/tests/normal-use/double-lt-int/results.txt b/tests/normal-use/double-lt-int/results.txt new file mode 100644 index 0000000..70fc7a7 --- /dev/null +++ b/tests/normal-use/double-lt-int/results.txt @@ -0,0 +1 @@ +49.50 diff --git a/tests/normal-use/double-lt-str/query.sql b/tests/normal-use/double-lt-str/query.sql new file mode 100644 index 0000000..ae8cb92 --- /dev/null +++ b/tests/normal-use/double-lt-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where double_6 < '99.0' order by double_6 desc limit 1; +.output diff --git a/tests/normal-use/double-lt-str/results.txt b/tests/normal-use/double-lt-str/results.txt new file mode 100644 index 0000000..70fc7a7 --- /dev/null +++ b/tests/normal-use/double-lt-str/results.txt @@ -0,0 +1 @@ +49.50 diff --git a/tests/normal-use/double-lt/query.sql b/tests/normal-use/double-lt/query.sql new file mode 100644 index 0000000..849281c --- /dev/null +++ b/tests/normal-use/double-lt/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where double_6 < 99.0 order by double_6 desc limit 1; +.output diff --git a/tests/normal-use/double-lt/results.txt b/tests/normal-use/double-lt/results.txt new file mode 100644 index 0000000..70fc7a7 --- /dev/null +++ b/tests/normal-use/double-lt/results.txt @@ -0,0 +1 @@ +49.50 diff --git a/tests/normal-use/double-lte-int/query.sql b/tests/normal-use/double-lte-int/query.sql new file mode 100644 index 0000000..391c935 --- /dev/null +++ b/tests/normal-use/double-lte-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where double_6 <= 99 order by double_6 desc limit 1; +.output diff --git a/tests/normal-use/double-lte-int/results.txt b/tests/normal-use/double-lte-int/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-lte-int/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-lte-str/query.sql b/tests/normal-use/double-lte-str/query.sql new file mode 100644 index 0000000..779cf16 --- /dev/null +++ b/tests/normal-use/double-lte-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where double_6 <= '99.0' order by double_6 desc limit 1; +.output diff --git a/tests/normal-use/double-lte-str/results.txt b/tests/normal-use/double-lte-str/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-lte-str/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-lte/query.sql b/tests/normal-use/double-lte/query.sql new file mode 100644 index 0000000..3dd0a1e --- /dev/null +++ b/tests/normal-use/double-lte/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where double_6 <= 99.0 order by double_6 desc limit 1; +.output diff --git a/tests/normal-use/double-lte/results.txt b/tests/normal-use/double-lte/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-lte/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-rowid-and-field-ne-int/query.sql b/tests/normal-use/double-rowid-and-field-ne-int/query.sql new file mode 100644 index 0000000..66c61ff --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where rowid = 0 and double_6 <> 99; +.output diff --git a/tests/normal-use/double-rowid-and-field-ne-int/results.txt b/tests/normal-use/double-rowid-and-field-ne-int/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/double-rowid-and-field-ne-str/query.sql b/tests/normal-use/double-rowid-and-field-ne-str/query.sql new file mode 100644 index 0000000..e292004 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where rowid = 0 and double_6 <> '99.0'; +.output diff --git a/tests/normal-use/double-rowid-and-field-ne-str/results.txt b/tests/normal-use/double-rowid-and-field-ne-str/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/double-rowid-and-field-ne/query.sql b/tests/normal-use/double-rowid-and-field-ne/query.sql new file mode 100644 index 0000000..fcab0b1 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where rowid = 0 and double_6 <> 99.0; +.output diff --git a/tests/normal-use/double-rowid-and-field-ne/results.txt b/tests/normal-use/double-rowid-and-field-ne/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/double-rowid-and-field-ne2-some-int/query.sql b/tests/normal-use/double-rowid-and-field-ne2-some-int/query.sql new file mode 100644 index 0000000..61a52df --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne2-some-int/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where rowid = 1 and double_6 <> 100; +.output diff --git a/tests/normal-use/double-rowid-and-field-ne2-some-int/results.txt b/tests/normal-use/double-rowid-and-field-ne2-some-int/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne2-some-int/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-rowid-and-field-ne2-some-str/query.sql b/tests/normal-use/double-rowid-and-field-ne2-some-str/query.sql new file mode 100644 index 0000000..73004b0 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne2-some-str/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where rowid = 1 and double_6 <> '100'; +.output diff --git a/tests/normal-use/double-rowid-and-field-ne2-some-str/results.txt b/tests/normal-use/double-rowid-and-field-ne2-some-str/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne2-some-str/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/double-rowid-and-field-ne2/query.sql b/tests/normal-use/double-rowid-and-field-ne2/query.sql new file mode 100644 index 0000000..cfb0481 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne2/query.sql @@ -0,0 +1,2 @@ +select printf('%.2f', double_6) FROM dataset where rowid = 1 and double_6 <> 100.0; +.output diff --git a/tests/normal-use/double-rowid-and-field-ne2/results.txt b/tests/normal-use/double-rowid-and-field-ne2/results.txt new file mode 100644 index 0000000..bd202a0 --- /dev/null +++ b/tests/normal-use/double-rowid-and-field-ne2/results.txt @@ -0,0 +1 @@ +99.00 diff --git a/tests/normal-use/fixed-bytearray-eq/query.sql b/tests/normal-use/fixed-bytearray-eq/query.sql new file mode 100644 index 0000000..ecfd4e3 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-eq/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_10 = X'10'; +.output diff --git a/tests/normal-use/fixed-bytearray-eq/results.txt b/tests/normal-use/fixed-bytearray-eq/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/fixed-bytearray-eq/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/fixed-bytearray-gt/query.sql b/tests/normal-use/fixed-bytearray-gt/query.sql new file mode 100644 index 0000000..b05bd27 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-gt/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_10 > X''; +.output diff --git a/tests/normal-use/fixed-bytearray-gt/results.txt b/tests/normal-use/fixed-bytearray-gt/results.txt new file mode 100644 index 0000000..3ad5abd --- /dev/null +++ b/tests/normal-use/fixed-bytearray-gt/results.txt @@ -0,0 +1 @@ +99 diff --git a/tests/normal-use/fixed-bytearray-gte/query.sql b/tests/normal-use/fixed-bytearray-gte/query.sql new file mode 100644 index 0000000..bab4a12 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-gte/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_10 >= X'01'; +.output diff --git a/tests/normal-use/fixed-bytearray-gte/results.txt b/tests/normal-use/fixed-bytearray-gte/results.txt new file mode 100644 index 0000000..6529ff8 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-gte/results.txt @@ -0,0 +1 @@ +98 diff --git a/tests/normal-use/fixed-bytearray-lt/query.sql b/tests/normal-use/fixed-bytearray-lt/query.sql new file mode 100644 index 0000000..dd74177 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-lt/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_10 < X'10'; +.output diff --git a/tests/normal-use/fixed-bytearray-lt/results.txt b/tests/normal-use/fixed-bytearray-lt/results.txt new file mode 100644 index 0000000..b6a7d89 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-lt/results.txt @@ -0,0 +1 @@ +16 diff --git a/tests/normal-use/fixed-bytearray-lte/query.sql b/tests/normal-use/fixed-bytearray-lte/query.sql new file mode 100644 index 0000000..10f5eef --- /dev/null +++ b/tests/normal-use/fixed-bytearray-lte/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_10 <= X'10'; +.output diff --git a/tests/normal-use/fixed-bytearray-lte/results.txt b/tests/normal-use/fixed-bytearray-lte/results.txt new file mode 100644 index 0000000..98d9bcb --- /dev/null +++ b/tests/normal-use/fixed-bytearray-lte/results.txt @@ -0,0 +1 @@ +17 diff --git a/tests/normal-use/fixed-bytearray-ne/query.sql b/tests/normal-use/fixed-bytearray-ne/query.sql new file mode 100644 index 0000000..eb13386 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-ne/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_10 <> X'10'; +.output diff --git a/tests/normal-use/fixed-bytearray-ne/results.txt b/tests/normal-use/fixed-bytearray-ne/results.txt new file mode 100644 index 0000000..6529ff8 --- /dev/null +++ b/tests/normal-use/fixed-bytearray-ne/results.txt @@ -0,0 +1 @@ +98 diff --git a/tests/normal-use/float-eq/query.sql b/tests/normal-use/float-eq/query.sql new file mode 100644 index 0000000..2a474d7 --- /dev/null +++ b/tests/normal-use/float-eq/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where float_11 = 1.0; +.output diff --git a/tests/normal-use/float-eq/results.txt b/tests/normal-use/float-eq/results.txt new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/tests/normal-use/float-eq/results.txt @@ -0,0 +1 @@ +1.0 diff --git a/tests/normal-use/float-eq2/query.sql b/tests/normal-use/float-eq2/query.sql new file mode 100644 index 0000000..f11dc9b --- /dev/null +++ b/tests/normal-use/float-eq2/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where float_11 = 123.0; +.output diff --git a/tests/normal-use/float-eq2/results.txt b/tests/normal-use/float-eq2/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/float-eq3/query.sql b/tests/normal-use/float-eq3/query.sql new file mode 100644 index 0000000..538b30e --- /dev/null +++ b/tests/normal-use/float-eq3/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where float_11 = '1'; +.output diff --git a/tests/normal-use/float-eq3/results.txt b/tests/normal-use/float-eq3/results.txt new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/tests/normal-use/float-eq3/results.txt @@ -0,0 +1 @@ +1.0 diff --git a/tests/normal-use/float-gt-2/query.sql b/tests/normal-use/float-gt-2/query.sql new file mode 100644 index 0000000..b6c0082 --- /dev/null +++ b/tests/normal-use/float-gt-2/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where float_11 > 0.5; +.output diff --git a/tests/normal-use/float-gt-2/results.txt b/tests/normal-use/float-gt-2/results.txt new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/tests/normal-use/float-gt-2/results.txt @@ -0,0 +1 @@ +1.0 diff --git a/tests/normal-use/float-gt/query.sql b/tests/normal-use/float-gt/query.sql new file mode 100644 index 0000000..1e1ffd4 --- /dev/null +++ b/tests/normal-use/float-gt/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where float_11 > 1.0; +.output diff --git a/tests/normal-use/float-gt/results.txt b/tests/normal-use/float-gt/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/float-gte/query.sql b/tests/normal-use/float-gte/query.sql new file mode 100644 index 0000000..d5fff72 --- /dev/null +++ b/tests/normal-use/float-gte/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where float_11 >= 1.0; +.output diff --git a/tests/normal-use/float-gte/results.txt b/tests/normal-use/float-gte/results.txt new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/tests/normal-use/float-gte/results.txt @@ -0,0 +1 @@ +1.0 diff --git a/tests/normal-use/float-is-not-null/query.sql b/tests/normal-use/float-is-not-null/query.sql new file mode 100644 index 0000000..04bc9af --- /dev/null +++ b/tests/normal-use/float-is-not-null/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where float_11 is not null; +.output diff --git a/tests/normal-use/float-is-not-null/results.txt b/tests/normal-use/float-is-not-null/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/float-is-not-null/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/float-is-null/query.sql b/tests/normal-use/float-is-null/query.sql new file mode 100644 index 0000000..b79d0f2 --- /dev/null +++ b/tests/normal-use/float-is-null/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where float_11 is null; +.output diff --git a/tests/normal-use/float-is-null/results.txt b/tests/normal-use/float-is-null/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/float-is-null/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/float-lt-1/query.sql b/tests/normal-use/float-lt-1/query.sql new file mode 100644 index 0000000..7193227 --- /dev/null +++ b/tests/normal-use/float-lt-1/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where float_11 < 0.0102; +.output diff --git a/tests/normal-use/float-lt-1/results.txt b/tests/normal-use/float-lt-1/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/float-lt-1/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/float-lt-2/query.sql b/tests/normal-use/float-lt-2/query.sql new file mode 100644 index 0000000..9bc7592 --- /dev/null +++ b/tests/normal-use/float-lt-2/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where float_11 < 0.001; +.output diff --git a/tests/normal-use/float-lt-2/results.txt b/tests/normal-use/float-lt-2/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/float-lt-2/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/float-lte/query.sql b/tests/normal-use/float-lte/query.sql new file mode 100644 index 0000000..259b397 --- /dev/null +++ b/tests/normal-use/float-lte/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where float_11 <= 0.0102; +.output diff --git a/tests/normal-use/float-lte/results.txt b/tests/normal-use/float-lte/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/float-lte/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/float-ne/query.sql b/tests/normal-use/float-ne/query.sql new file mode 100644 index 0000000..b335600 --- /dev/null +++ b/tests/normal-use/float-ne/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where float_11 <> 1.0; +.output diff --git a/tests/normal-use/float-ne/results.txt b/tests/normal-use/float-ne/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/float-ne/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/float-skip/query.sql b/tests/normal-use/float-skip/query.sql new file mode 100644 index 0000000..590cc4f --- /dev/null +++ b/tests/normal-use/float-skip/query.sql @@ -0,0 +1,2 @@ +select float_11 from nulls where rowid = 2; +.output diff --git a/tests/normal-use/float-skip/results.txt b/tests/normal-use/float-skip/results.txt new file mode 100644 index 0000000..2eb3c4f --- /dev/null +++ b/tests/normal-use/float-skip/results.txt @@ -0,0 +1 @@ +0.5 diff --git a/tests/normal-use/glob-star-1/query.sql b/tests/normal-use/glob-star-1/query.sql new file mode 100644 index 0000000..5d0ad5a --- /dev/null +++ b/tests/normal-use/glob-star-1/query.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 glob '7*'; +.output diff --git a/tests/normal-use/glob-star-1/results.txt b/tests/normal-use/glob-star-1/results.txt new file mode 100644 index 0000000..869b3af --- /dev/null +++ b/tests/normal-use/glob-star-1/results.txt @@ -0,0 +1,6 @@ +7 +70 +72 +74 +76 +78 diff --git a/tests/normal-use/glob-star-2/query.sql b/tests/normal-use/glob-star-2/query.sql new file mode 100644 index 0000000..56a744b --- /dev/null +++ b/tests/normal-use/glob-star-2/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where string_7 glob '*'; +.output diff --git a/tests/normal-use/glob-star-2/results.txt b/tests/normal-use/glob-star-2/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/glob-star-2/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/glob-star-eight/query.sql b/tests/normal-use/glob-star-eight/query.sql new file mode 100644 index 0000000..47b802f --- /dev/null +++ b/tests/normal-use/glob-star-eight/query.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 glob '7*8'; +.output diff --git a/tests/normal-use/glob-star-eight/results.txt b/tests/normal-use/glob-star-eight/results.txt new file mode 100644 index 0000000..8e14edc --- /dev/null +++ b/tests/normal-use/glob-star-eight/results.txt @@ -0,0 +1 @@ +78 diff --git a/tests/normal-use/glob-star-stuff/query.sql b/tests/normal-use/glob-star-stuff/query.sql new file mode 100644 index 0000000..e3f9a5f --- /dev/null +++ b/tests/normal-use/glob-star-stuff/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where string_7 glob '*123'; +.output diff --git a/tests/normal-use/glob-star-stuff/results.txt b/tests/normal-use/glob-star-stuff/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/glob-star-stuff/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/glob-star-zero/query.sql b/tests/normal-use/glob-star-zero/query.sql new file mode 100644 index 0000000..a9b58a5 --- /dev/null +++ b/tests/normal-use/glob-star-zero/query.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 glob '*0'; +.output diff --git a/tests/normal-use/glob-star-zero/results.txt b/tests/normal-use/glob-star-zero/results.txt new file mode 100644 index 0000000..52bd744 --- /dev/null +++ b/tests/normal-use/glob-star-zero/results.txt @@ -0,0 +1,9 @@ +0 +20 +30 +40 +50 +60 +70 +80 +90 diff --git a/tests/normal-use/glob/query.sql b/tests/normal-use/glob/query.sql new file mode 100644 index 0000000..498b7db --- /dev/null +++ b/tests/normal-use/glob/query.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 glob '7'; +.output diff --git a/tests/normal-use/glob/results.txt b/tests/normal-use/glob/results.txt new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/tests/normal-use/glob/results.txt @@ -0,0 +1 @@ +7 diff --git a/tests/normal-use/int64-eq-double/query.sql b/tests/normal-use/int64-eq-double/query.sql new file mode 100644 index 0000000..28ed1db --- /dev/null +++ b/tests/normal-use/int64-eq-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 = 49000000000.0; +.output diff --git a/tests/normal-use/int64-eq-double/results.txt b/tests/normal-use/int64-eq-double/results.txt new file mode 100644 index 0000000..ed08cb6 --- /dev/null +++ b/tests/normal-use/int64-eq-double/results.txt @@ -0,0 +1 @@ +49000000000 diff --git a/tests/normal-use/int64-eq-str/query.sql b/tests/normal-use/int64-eq-str/query.sql new file mode 100644 index 0000000..fff77f6 --- /dev/null +++ b/tests/normal-use/int64-eq-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 = '49000000000'; +.output diff --git a/tests/normal-use/int64-eq-str/results.txt b/tests/normal-use/int64-eq-str/results.txt new file mode 100644 index 0000000..ed08cb6 --- /dev/null +++ b/tests/normal-use/int64-eq-str/results.txt @@ -0,0 +1 @@ +49000000000 diff --git a/tests/normal-use/int64-eq/query.sql b/tests/normal-use/int64-eq/query.sql new file mode 100644 index 0000000..79f4da2 --- /dev/null +++ b/tests/normal-use/int64-eq/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 = 49000000000; +.output diff --git a/tests/normal-use/int64-eq/results.txt b/tests/normal-use/int64-eq/results.txt new file mode 100644 index 0000000..ed08cb6 --- /dev/null +++ b/tests/normal-use/int64-eq/results.txt @@ -0,0 +1 @@ +49000000000 diff --git a/tests/normal-use/int64-gt/query.sql b/tests/normal-use/int64-gt/query.sql new file mode 100644 index 0000000..dba63a8 --- /dev/null +++ b/tests/normal-use/int64-gt/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 > 49000000000; +.output diff --git a/tests/normal-use/int64-gt/results.txt b/tests/normal-use/int64-gt/results.txt new file mode 100644 index 0000000..03d7e74 --- /dev/null +++ b/tests/normal-use/int64-gt/results.txt @@ -0,0 +1 @@ +50000000000 diff --git a/tests/normal-use/int64-gte-double/query.sql b/tests/normal-use/int64-gte-double/query.sql new file mode 100644 index 0000000..2fe9d3e --- /dev/null +++ b/tests/normal-use/int64-gte-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 >= 49000000000.0; +.output diff --git a/tests/normal-use/int64-gte-double/results.txt b/tests/normal-use/int64-gte-double/results.txt new file mode 100644 index 0000000..53a1f1b --- /dev/null +++ b/tests/normal-use/int64-gte-double/results.txt @@ -0,0 +1,2 @@ +50000000000 +49000000000 diff --git a/tests/normal-use/int64-gte-str/query.sql b/tests/normal-use/int64-gte-str/query.sql new file mode 100644 index 0000000..6c2872d --- /dev/null +++ b/tests/normal-use/int64-gte-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 >= '49000000000'; +.output diff --git a/tests/normal-use/int64-gte-str/results.txt b/tests/normal-use/int64-gte-str/results.txt new file mode 100644 index 0000000..53a1f1b --- /dev/null +++ b/tests/normal-use/int64-gte-str/results.txt @@ -0,0 +1,2 @@ +50000000000 +49000000000 diff --git a/tests/normal-use/int64-gte/query.sql b/tests/normal-use/int64-gte/query.sql new file mode 100644 index 0000000..465252d --- /dev/null +++ b/tests/normal-use/int64-gte/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 >= 49000000000; +.output diff --git a/tests/normal-use/int64-gte/results.txt b/tests/normal-use/int64-gte/results.txt new file mode 100644 index 0000000..53a1f1b --- /dev/null +++ b/tests/normal-use/int64-gte/results.txt @@ -0,0 +1,2 @@ +50000000000 +49000000000 diff --git a/tests/normal-use/int64-lt-double/query.sql b/tests/normal-use/int64-lt-double/query.sql new file mode 100644 index 0000000..7939eca --- /dev/null +++ b/tests/normal-use/int64-lt-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 < -46000000000.0; +.output diff --git a/tests/normal-use/int64-lt-double/results.txt b/tests/normal-use/int64-lt-double/results.txt new file mode 100644 index 0000000..ba244ef --- /dev/null +++ b/tests/normal-use/int64-lt-double/results.txt @@ -0,0 +1 @@ +-47000000000 diff --git a/tests/normal-use/int64-lt-str/query.sql b/tests/normal-use/int64-lt-str/query.sql new file mode 100644 index 0000000..d4de2a6 --- /dev/null +++ b/tests/normal-use/int64-lt-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 < '-46000000000'; +.output diff --git a/tests/normal-use/int64-lt-str/results.txt b/tests/normal-use/int64-lt-str/results.txt new file mode 100644 index 0000000..ba244ef --- /dev/null +++ b/tests/normal-use/int64-lt-str/results.txt @@ -0,0 +1 @@ +-47000000000 diff --git a/tests/normal-use/int64-lt/query.sql b/tests/normal-use/int64-lt/query.sql new file mode 100644 index 0000000..92ca797 --- /dev/null +++ b/tests/normal-use/int64-lt/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 < -46000000000; +.output diff --git a/tests/normal-use/int64-lt/results.txt b/tests/normal-use/int64-lt/results.txt new file mode 100644 index 0000000..ba244ef --- /dev/null +++ b/tests/normal-use/int64-lt/results.txt @@ -0,0 +1 @@ +-47000000000 diff --git a/tests/normal-use/int64-lte-double/query.sql b/tests/normal-use/int64-lte-double/query.sql new file mode 100644 index 0000000..3ee2a00 --- /dev/null +++ b/tests/normal-use/int64-lte-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 <= -45000000000.0; +.output diff --git a/tests/normal-use/int64-lte-double/results.txt b/tests/normal-use/int64-lte-double/results.txt new file mode 100644 index 0000000..246fa1d --- /dev/null +++ b/tests/normal-use/int64-lte-double/results.txt @@ -0,0 +1,2 @@ +-45000000000 +-47000000000 diff --git a/tests/normal-use/int64-lte-str/query.sql b/tests/normal-use/int64-lte-str/query.sql new file mode 100644 index 0000000..20d8d83 --- /dev/null +++ b/tests/normal-use/int64-lte-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 <= '-45000000000'; +.output diff --git a/tests/normal-use/int64-lte-str/results.txt b/tests/normal-use/int64-lte-str/results.txt new file mode 100644 index 0000000..246fa1d --- /dev/null +++ b/tests/normal-use/int64-lte-str/results.txt @@ -0,0 +1,2 @@ +-45000000000 +-47000000000 diff --git a/tests/normal-use/int64-lte/query.sql b/tests/normal-use/int64-lte/query.sql new file mode 100644 index 0000000..d9c5185 --- /dev/null +++ b/tests/normal-use/int64-lte/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 <= -45000000000; +.output diff --git a/tests/normal-use/int64-lte/results.txt b/tests/normal-use/int64-lte/results.txt new file mode 100644 index 0000000..246fa1d --- /dev/null +++ b/tests/normal-use/int64-lte/results.txt @@ -0,0 +1,2 @@ +-45000000000 +-47000000000 diff --git a/tests/normal-use/int64-ne-double/query.sql b/tests/normal-use/int64-ne-double/query.sql new file mode 100644 index 0000000..5e68099 --- /dev/null +++ b/tests/normal-use/int64-ne-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where rowid = 57 and int64_4 <> -7000000000.0; +.output diff --git a/tests/normal-use/int64-ne-double/results.txt b/tests/normal-use/int64-ne-double/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/int64-ne-some-double/query.sql b/tests/normal-use/int64-ne-some-double/query.sql new file mode 100644 index 0000000..f041d97 --- /dev/null +++ b/tests/normal-use/int64-ne-some-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where rowid = 58 and int64_4 <> -8000000000.0; +.output diff --git a/tests/normal-use/int64-ne-some-double/results.txt b/tests/normal-use/int64-ne-some-double/results.txt new file mode 100644 index 0000000..0af2100 --- /dev/null +++ b/tests/normal-use/int64-ne-some-double/results.txt @@ -0,0 +1 @@ +-7000000000 diff --git a/tests/normal-use/int64-ne-some-str/query.sql b/tests/normal-use/int64-ne-some-str/query.sql new file mode 100644 index 0000000..50234ee --- /dev/null +++ b/tests/normal-use/int64-ne-some-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where rowid = 58 and int64_4 <> '-8000000000'; +.output diff --git a/tests/normal-use/int64-ne-some-str/results.txt b/tests/normal-use/int64-ne-some-str/results.txt new file mode 100644 index 0000000..0af2100 --- /dev/null +++ b/tests/normal-use/int64-ne-some-str/results.txt @@ -0,0 +1 @@ +-7000000000 diff --git a/tests/normal-use/int64-ne-str/query.sql b/tests/normal-use/int64-ne-str/query.sql new file mode 100644 index 0000000..74497a3 --- /dev/null +++ b/tests/normal-use/int64-ne-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where rowid = 57 and int64_4 <> '-7000000000'; +.output diff --git a/tests/normal-use/int64-ne-str/results.txt b/tests/normal-use/int64-ne-str/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/int64-rowid-eq-and-field-ne/query.sql b/tests/normal-use/int64-rowid-eq-and-field-ne/query.sql new file mode 100644 index 0000000..2dcef03 --- /dev/null +++ b/tests/normal-use/int64-rowid-eq-and-field-ne/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where rowid = 57 and int64_4 <> -7000000000; +.output diff --git a/tests/normal-use/int64-rowid-eq-and-field-ne/results.txt b/tests/normal-use/int64-rowid-eq-and-field-ne/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/int64-rowid-eq-and-field-ne2/query.sql b/tests/normal-use/int64-rowid-eq-and-field-ne2/query.sql new file mode 100644 index 0000000..ab3e7a3 --- /dev/null +++ b/tests/normal-use/int64-rowid-eq-and-field-ne2/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where rowid = 58 and int64_4 <> -8000000000; +.output diff --git a/tests/normal-use/int64-rowid-eq-and-field-ne2/results.txt b/tests/normal-use/int64-rowid-eq-and-field-ne2/results.txt new file mode 100644 index 0000000..0af2100 --- /dev/null +++ b/tests/normal-use/int64-rowid-eq-and-field-ne2/results.txt @@ -0,0 +1 @@ +-7000000000 diff --git a/tests/normal-use/int65-gt-double/query.sql b/tests/normal-use/int65-gt-double/query.sql new file mode 100644 index 0000000..315f698 --- /dev/null +++ b/tests/normal-use/int65-gt-double/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 > 49000000000.0; +.output diff --git a/tests/normal-use/int65-gt-double/results.txt b/tests/normal-use/int65-gt-double/results.txt new file mode 100644 index 0000000..03d7e74 --- /dev/null +++ b/tests/normal-use/int65-gt-double/results.txt @@ -0,0 +1 @@ +50000000000 diff --git a/tests/normal-use/int65-gt-str/query.sql b/tests/normal-use/int65-gt-str/query.sql new file mode 100644 index 0000000..7936736 --- /dev/null +++ b/tests/normal-use/int65-gt-str/query.sql @@ -0,0 +1,2 @@ +select int64_4 FROM dataset where int64_4 > '49000000000'; +.output diff --git a/tests/normal-use/int65-gt-str/results.txt b/tests/normal-use/int65-gt-str/results.txt new file mode 100644 index 0000000..03d7e74 --- /dev/null +++ b/tests/normal-use/int65-gt-str/results.txt @@ -0,0 +1 @@ +50000000000 diff --git a/tests/normal-use/int8-eq-bogus-str/query.sql b/tests/normal-use/int8-eq-bogus-str/query.sql new file mode 100644 index 0000000..ba155d6 --- /dev/null +++ b/tests/normal-use/int8-eq-bogus-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 = '30f'; +.output diff --git a/tests/normal-use/int8-eq-bogus-str/results.txt b/tests/normal-use/int8-eq-bogus-str/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/int8-eq-double/query.sql b/tests/normal-use/int8-eq-double/query.sql new file mode 100644 index 0000000..4d8d7ec --- /dev/null +++ b/tests/normal-use/int8-eq-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 = 30.0; +.output diff --git a/tests/normal-use/int8-eq-double/results.txt b/tests/normal-use/int8-eq-double/results.txt new file mode 100644 index 0000000..64bb6b7 --- /dev/null +++ b/tests/normal-use/int8-eq-double/results.txt @@ -0,0 +1 @@ +30 diff --git a/tests/normal-use/int8-eq-str/query.sql b/tests/normal-use/int8-eq-str/query.sql new file mode 100644 index 0000000..ccb04f5 --- /dev/null +++ b/tests/normal-use/int8-eq-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 = '30.0'; +.output diff --git a/tests/normal-use/int8-eq-str/results.txt b/tests/normal-use/int8-eq-str/results.txt new file mode 100644 index 0000000..64bb6b7 --- /dev/null +++ b/tests/normal-use/int8-eq-str/results.txt @@ -0,0 +1 @@ +30 diff --git a/tests/normal-use/int8-eq-str2/query.sql b/tests/normal-use/int8-eq-str2/query.sql new file mode 100644 index 0000000..3184204 --- /dev/null +++ b/tests/normal-use/int8-eq-str2/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 = '30'; +.output diff --git a/tests/normal-use/int8-eq-str2/results.txt b/tests/normal-use/int8-eq-str2/results.txt new file mode 100644 index 0000000..64bb6b7 --- /dev/null +++ b/tests/normal-use/int8-eq-str2/results.txt @@ -0,0 +1 @@ +30 diff --git a/tests/normal-use/int8-eq/query.sql b/tests/normal-use/int8-eq/query.sql new file mode 100644 index 0000000..4ac26cc --- /dev/null +++ b/tests/normal-use/int8-eq/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 = 30; +.output diff --git a/tests/normal-use/int8-eq/results.txt b/tests/normal-use/int8-eq/results.txt new file mode 100644 index 0000000..64bb6b7 --- /dev/null +++ b/tests/normal-use/int8-eq/results.txt @@ -0,0 +1 @@ +30 diff --git a/tests/normal-use/int8-gt-double/query.sql b/tests/normal-use/int8-gt-double/query.sql new file mode 100644 index 0000000..fa848d0 --- /dev/null +++ b/tests/normal-use/int8-gt-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 > 49.0; +.output diff --git a/tests/normal-use/int8-gt-double/results.txt b/tests/normal-use/int8-gt-double/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/int8-gt-double/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/int8-gt-str/query.sql b/tests/normal-use/int8-gt-str/query.sql new file mode 100644 index 0000000..c8bf9be --- /dev/null +++ b/tests/normal-use/int8-gt-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 > '49'; +.output diff --git a/tests/normal-use/int8-gt-str/results.txt b/tests/normal-use/int8-gt-str/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/int8-gt-str/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/int8-gt/query.sql b/tests/normal-use/int8-gt/query.sql new file mode 100644 index 0000000..dc28788 --- /dev/null +++ b/tests/normal-use/int8-gt/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 > 49; +.output diff --git a/tests/normal-use/int8-gt/results.txt b/tests/normal-use/int8-gt/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/int8-gt/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/int8-gte-double/query.sql b/tests/normal-use/int8-gte-double/query.sql new file mode 100644 index 0000000..6056177 --- /dev/null +++ b/tests/normal-use/int8-gte-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 >= 49.0; +.output diff --git a/tests/normal-use/int8-gte-double/results.txt b/tests/normal-use/int8-gte-double/results.txt new file mode 100644 index 0000000..701b1c6 --- /dev/null +++ b/tests/normal-use/int8-gte-double/results.txt @@ -0,0 +1,2 @@ +50 +49 diff --git a/tests/normal-use/int8-gte-str/query.sql b/tests/normal-use/int8-gte-str/query.sql new file mode 100644 index 0000000..ecc0a6d --- /dev/null +++ b/tests/normal-use/int8-gte-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 >= '49'; +.output diff --git a/tests/normal-use/int8-gte-str/results.txt b/tests/normal-use/int8-gte-str/results.txt new file mode 100644 index 0000000..701b1c6 --- /dev/null +++ b/tests/normal-use/int8-gte-str/results.txt @@ -0,0 +1,2 @@ +50 +49 diff --git a/tests/normal-use/int8-gte/query.sql b/tests/normal-use/int8-gte/query.sql new file mode 100644 index 0000000..c8a2afb --- /dev/null +++ b/tests/normal-use/int8-gte/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 >= 49; +.output diff --git a/tests/normal-use/int8-gte/results.txt b/tests/normal-use/int8-gte/results.txt new file mode 100644 index 0000000..701b1c6 --- /dev/null +++ b/tests/normal-use/int8-gte/results.txt @@ -0,0 +1,2 @@ +50 +49 diff --git a/tests/normal-use/int8-lt-double/query.sql b/tests/normal-use/int8-lt-double/query.sql new file mode 100644 index 0000000..70dbf3f --- /dev/null +++ b/tests/normal-use/int8-lt-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 < -46.0; +.output diff --git a/tests/normal-use/int8-lt-double/results.txt b/tests/normal-use/int8-lt-double/results.txt new file mode 100644 index 0000000..0534f01 --- /dev/null +++ b/tests/normal-use/int8-lt-double/results.txt @@ -0,0 +1 @@ +-48 diff --git a/tests/normal-use/int8-lt-str/query.sql b/tests/normal-use/int8-lt-str/query.sql new file mode 100644 index 0000000..111ac74 --- /dev/null +++ b/tests/normal-use/int8-lt-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 < '-46'; +.output diff --git a/tests/normal-use/int8-lt-str/results.txt b/tests/normal-use/int8-lt-str/results.txt new file mode 100644 index 0000000..0534f01 --- /dev/null +++ b/tests/normal-use/int8-lt-str/results.txt @@ -0,0 +1 @@ +-48 diff --git a/tests/normal-use/int8-lt/query.sql b/tests/normal-use/int8-lt/query.sql new file mode 100644 index 0000000..997c287 --- /dev/null +++ b/tests/normal-use/int8-lt/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 < -46; +.output diff --git a/tests/normal-use/int8-lt/results.txt b/tests/normal-use/int8-lt/results.txt new file mode 100644 index 0000000..0534f01 --- /dev/null +++ b/tests/normal-use/int8-lt/results.txt @@ -0,0 +1 @@ +-48 diff --git a/tests/normal-use/int8-lte-double/query.sql b/tests/normal-use/int8-lte-double/query.sql new file mode 100644 index 0000000..6f89868 --- /dev/null +++ b/tests/normal-use/int8-lte-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 <= -46.0; +.output diff --git a/tests/normal-use/int8-lte-double/results.txt b/tests/normal-use/int8-lte-double/results.txt new file mode 100644 index 0000000..9ea2cae --- /dev/null +++ b/tests/normal-use/int8-lte-double/results.txt @@ -0,0 +1,2 @@ +-46 +-48 diff --git a/tests/normal-use/int8-lte-str/query.sql b/tests/normal-use/int8-lte-str/query.sql new file mode 100644 index 0000000..32e1af0 --- /dev/null +++ b/tests/normal-use/int8-lte-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 <= '-46'; +.output diff --git a/tests/normal-use/int8-lte-str/results.txt b/tests/normal-use/int8-lte-str/results.txt new file mode 100644 index 0000000..9ea2cae --- /dev/null +++ b/tests/normal-use/int8-lte-str/results.txt @@ -0,0 +1,2 @@ +-46 +-48 diff --git a/tests/normal-use/int8-lte/query.sql b/tests/normal-use/int8-lte/query.sql new file mode 100644 index 0000000..b71183b --- /dev/null +++ b/tests/normal-use/int8-lte/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where int8_1 <= -46; +.output diff --git a/tests/normal-use/int8-lte/results.txt b/tests/normal-use/int8-lte/results.txt new file mode 100644 index 0000000..9ea2cae --- /dev/null +++ b/tests/normal-use/int8-lte/results.txt @@ -0,0 +1,2 @@ +-46 +-48 diff --git a/tests/normal-use/int8-ne-double/query.sql b/tests/normal-use/int8-ne-double/query.sql new file mode 100644 index 0000000..8a10ac9 --- /dev/null +++ b/tests/normal-use/int8-ne-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where rowid = 66 and int8_1 <> -16.0; +.output diff --git a/tests/normal-use/int8-ne-double/results.txt b/tests/normal-use/int8-ne-double/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/int8-ne-str/query.sql b/tests/normal-use/int8-ne-str/query.sql new file mode 100644 index 0000000..e3e601f --- /dev/null +++ b/tests/normal-use/int8-ne-str/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where rowid = 66 and int8_1 <> '-16'; +.output diff --git a/tests/normal-use/int8-ne-str/results.txt b/tests/normal-use/int8-ne-str/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/int8-rowid-eq-and-field-ne/query.sql b/tests/normal-use/int8-rowid-eq-and-field-ne/query.sql new file mode 100644 index 0000000..ea343fe --- /dev/null +++ b/tests/normal-use/int8-rowid-eq-and-field-ne/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where rowid = 66 and int8_1 <> -16; +.output diff --git a/tests/normal-use/int8-rowid-eq-and-field-ne/results.txt b/tests/normal-use/int8-rowid-eq-and-field-ne/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/like-long/query.sql b/tests/normal-use/like-long/query.sql new file mode 100644 index 0000000..6edaa3b --- /dev/null +++ b/tests/normal-use/like-long/query.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 like 'asdfasdf'; +.output diff --git a/tests/normal-use/like-long/results.txt b/tests/normal-use/like-long/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/not-not-null/query.sql b/tests/normal-use/not-not-null/query.sql new file mode 100644 index 0000000..0121f6b --- /dev/null +++ b/tests/normal-use/not-not-null/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where not binary_9 not null; +.output diff --git a/tests/normal-use/not-not-null/results.txt b/tests/normal-use/not-not-null/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/not-not-null/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/not-null/query.sql b/tests/normal-use/not-null/query.sql new file mode 100644 index 0000000..b26f3dc --- /dev/null +++ b/tests/normal-use/not-null/query.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where binary_9 not null; +.output diff --git a/tests/normal-use/not-null/results.txt b/tests/normal-use/not-null/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/not-null/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/nulls-from-no-null/query.sql b/tests/normal-use/nulls-from-no-null/query.sql new file mode 100644 index 0000000..13bd281 --- /dev/null +++ b/tests/normal-use/nulls-from-no-null/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid is null; +.output diff --git a/tests/normal-use/nulls-from-no-null/results.txt b/tests/normal-use/nulls-from-no-null/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/nulls-from-no-null/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/nulls-like-no-match/query.sql b/tests/normal-use/nulls-like-no-match/query.sql new file mode 100644 index 0000000..06f823e --- /dev/null +++ b/tests/normal-use/nulls-like-no-match/query.sql @@ -0,0 +1,2 @@ +select string_7, string_8 FROM dataset where string_8 like '0'; +.output diff --git a/tests/normal-use/nulls-like-no-match/results.txt b/tests/normal-use/nulls-like-no-match/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/nulls-like-percent-end/query.sql b/tests/normal-use/nulls-like-percent-end/query.sql new file mode 100644 index 0000000..1222e1c --- /dev/null +++ b/tests/normal-use/nulls-like-percent-end/query.sql @@ -0,0 +1,2 @@ +select string_7, string_8 FROM dataset where string_8 like '0%'; +.output diff --git a/tests/normal-use/nulls-like-percent-end/results.txt b/tests/normal-use/nulls-like-percent-end/results.txt new file mode 100644 index 0000000..5eddd86 --- /dev/null +++ b/tests/normal-use/nulls-like-percent-end/results.txt @@ -0,0 +1,49 @@ +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 diff --git a/tests/normal-use/nulls-like-percent-start/query.sql b/tests/normal-use/nulls-like-percent-start/query.sql new file mode 100644 index 0000000..af9cc70 --- /dev/null +++ b/tests/normal-use/nulls-like-percent-start/query.sql @@ -0,0 +1,2 @@ +select string_7, string_8 FROM dataset where string_8 like '%0'; +.output diff --git a/tests/normal-use/nulls-like-percent-start/results.txt b/tests/normal-use/nulls-like-percent-start/results.txt new file mode 100644 index 0000000..f3ab6bd --- /dev/null +++ b/tests/normal-use/nulls-like-percent-start/results.txt @@ -0,0 +1 @@ +0|000 diff --git a/tests/normal-use/nulls-like-underscore/query.sql b/tests/normal-use/nulls-like-underscore/query.sql new file mode 100644 index 0000000..85a8cba --- /dev/null +++ b/tests/normal-use/nulls-like-underscore/query.sql @@ -0,0 +1,2 @@ +select string_7, string_8 FROM dataset where string_8 like '0_0'; +.output diff --git a/tests/normal-use/nulls-like-underscore/results.txt b/tests/normal-use/nulls-like-underscore/results.txt new file mode 100644 index 0000000..f3ab6bd --- /dev/null +++ b/tests/normal-use/nulls-like-underscore/results.txt @@ -0,0 +1 @@ +0|000 diff --git a/tests/normal-use/nulls/query.sql b/tests/normal-use/nulls/query.sql new file mode 100644 index 0000000..cc716da --- /dev/null +++ b/tests/normal-use/nulls/query.sql @@ -0,0 +1,2 @@ +SELECT SUM(CASE WHEN bool_0 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN int8_1 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN int16_2 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN int32_3 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN int64_4 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN ts_5 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN double_6 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN string_7 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN string_8 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN binary_9 IS NULL THEN 1 ELSE 0 END), SUM(CASE WHEN binary_10 IS NULL THEN 1 ELSE 0 END) FROM dataset; +.output diff --git a/tests/normal-use/nulls/results.txt b/tests/normal-use/nulls/results.txt new file mode 100644 index 0000000..deff9a8 --- /dev/null +++ b/tests/normal-use/nulls/results.txt @@ -0,0 +1 @@ +50|49|50|49|50|49|50|49|50|49|50 diff --git a/tests/normal-use/order-by-string7/query.sql b/tests/normal-use/order-by-string7/query.sql new file mode 100644 index 0000000..a11b2a1 --- /dev/null +++ b/tests/normal-use/order-by-string7/query.sql @@ -0,0 +1,2 @@ +select string_7 FROM dataset order by string_7; +.output diff --git a/tests/normal-use/order-by-string7/results.txt b/tests/normal-use/order-by-string7/results.txt new file mode 100644 index 0000000..6872bb1 --- /dev/null +++ b/tests/normal-use/order-by-string7/results.txt @@ -0,0 +1,99 @@ +0 +1 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +2 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +3 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +4 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +5 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +6 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +7 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +8 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +9 +90 +91 +92 +93 +94 +95 +96 +97 +98 diff --git a/tests/normal-use/order-by-string8/query.sql b/tests/normal-use/order-by-string8/query.sql new file mode 100644 index 0000000..f73aaae --- /dev/null +++ b/tests/normal-use/order-by-string8/query.sql @@ -0,0 +1,2 @@ +select string_8 FROM dataset order by string_8; +.output diff --git a/tests/normal-use/order-by-string8/results.txt b/tests/normal-use/order-by-string8/results.txt new file mode 100644 index 0000000..505ea95 --- /dev/null +++ b/tests/normal-use/order-by-string8/results.txt @@ -0,0 +1,99 @@ +000 +001 +002 +003 +004 +005 +006 +007 +008 +009 +010 +011 +012 +013 +014 +015 +016 +017 +018 +019 +020 +021 +022 +023 +024 +025 +026 +027 +028 +029 +030 +031 +032 +033 +034 +035 +036 +037 +038 +039 +040 +041 +042 +043 +044 +045 +046 +047 +048 +049 +050 +051 +052 +053 +054 +055 +056 +057 +058 +059 +060 +061 +062 +063 +064 +065 +066 +067 +068 +069 +070 +071 +072 +073 +074 +075 +076 +077 +078 +079 +080 +081 +082 +083 +084 +085 +086 +087 +088 +089 +090 +091 +092 +093 +094 +095 +096 +097 +098 diff --git a/tests/normal-use/random-testcase-1/query.sql b/tests/normal-use/random-testcase-1/query.sql new file mode 100644 index 0000000..2f3722d --- /dev/null +++ b/tests/normal-use/random-testcase-1/query.sql @@ -0,0 +1,2 @@ +select rowid FROM dataset where binary_9 >= '56' and ts_5 < 496886400000; +.output diff --git a/tests/normal-use/random-testcase-1/results.txt b/tests/normal-use/random-testcase-1/results.txt new file mode 100644 index 0000000..a44ad00 --- /dev/null +++ b/tests/normal-use/random-testcase-1/results.txt @@ -0,0 +1,36 @@ +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +21 +23 +25 +27 +29 +31 +33 +35 +37 +39 +41 +43 +45 +47 +49 +51 +53 +55 +57 +59 +61 +63 +65 +67 +69 +71 diff --git a/tests/normal-use/random-testcase-2/query.sql b/tests/normal-use/random-testcase-2/query.sql new file mode 100644 index 0000000..32a0be5 --- /dev/null +++ b/tests/normal-use/random-testcase-2/query.sql @@ -0,0 +1,2 @@ +SELECT quote(int8_1) FROM dataset WHERE rowid <> 94 AND bool_0 IS NOT 0; +.output diff --git a/tests/normal-use/random-testcase-2/results.txt b/tests/normal-use/random-testcase-2/results.txt new file mode 100644 index 0000000..da7fce8 --- /dev/null +++ b/tests/normal-use/random-testcase-2/results.txt @@ -0,0 +1,55 @@ +50 +48 +46 +44 +42 +NULL +NULL +NULL +NULL +NULL +NULL +NULL +NULL +NULL +NULL +30 +28 +26 +24 +22 +20 +18 +16 +14 +12 +10 +8 +6 +4 +2 +0 +-2 +-4 +-6 +-8 +-10 +-12 +-14 +-16 +-18 +-20 +-22 +-24 +-26 +-28 +-30 +-32 +-34 +-36 +-38 +-40 +-42 +-44 +-46 +-48 diff --git a/tests/normal-use/random-testcase-3/query.sql b/tests/normal-use/random-testcase-3/query.sql new file mode 100644 index 0000000..0591c88 --- /dev/null +++ b/tests/normal-use/random-testcase-3/query.sql @@ -0,0 +1,2 @@ +SELECT rowid FROM nulls WHERE (bool_0 IS 1); +.output diff --git a/tests/normal-use/random-testcase-3/results.txt b/tests/normal-use/random-testcase-3/results.txt new file mode 100644 index 0000000..2738e8e --- /dev/null +++ b/tests/normal-use/random-testcase-3/results.txt @@ -0,0 +1,5 @@ +1 +3 +5 +7 +9 diff --git a/tests/normal-use/rowid-1-rowgroup/query.sql b/tests/normal-use/rowid-1-rowgroup/query.sql new file mode 100644 index 0000000..9b10214 --- /dev/null +++ b/tests/normal-use/rowid-1-rowgroup/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where rowid = 51; +.output diff --git a/tests/normal-use/rowid-1-rowgroup/results.txt b/tests/normal-use/rowid-1-rowgroup/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/rowid-1-rowgroup/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/rowid-55-10-rowgroups/query.sql b/tests/normal-use/rowid-55-10-rowgroups/query.sql new file mode 100644 index 0000000..16e1f6f --- /dev/null +++ b/tests/normal-use/rowid-55-10-rowgroups/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where rowid = 56; +.output diff --git a/tests/normal-use/rowid-55-10-rowgroups/results.txt b/tests/normal-use/rowid-55-10-rowgroups/results.txt new file mode 100644 index 0000000..d83d2bc --- /dev/null +++ b/tests/normal-use/rowid-55-10-rowgroups/results.txt @@ -0,0 +1 @@ +-5 diff --git a/tests/normal-use/rowid-and-field-eq/query.sql b/tests/normal-use/rowid-and-field-eq/query.sql new file mode 100644 index 0000000..8205666 --- /dev/null +++ b/tests/normal-use/rowid-and-field-eq/query.sql @@ -0,0 +1,2 @@ +select string_8 FROM dataset where rowid = 22 and string_8 = '021'; +.output diff --git a/tests/normal-use/rowid-and-field-eq/results.txt b/tests/normal-use/rowid-and-field-eq/results.txt new file mode 100644 index 0000000..589193e --- /dev/null +++ b/tests/normal-use/rowid-and-field-eq/results.txt @@ -0,0 +1 @@ +021 diff --git a/tests/normal-use/rowid-and-field-ne/query.sql b/tests/normal-use/rowid-and-field-ne/query.sql new file mode 100644 index 0000000..d86250b --- /dev/null +++ b/tests/normal-use/rowid-and-field-ne/query.sql @@ -0,0 +1,2 @@ +select string_8 FROM dataset where rowid = 22 and string_8 <> '021'; +.output diff --git a/tests/normal-use/rowid-and-field-ne/results.txt b/tests/normal-use/rowid-and-field-ne/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/rowid-double/query.sql b/tests/normal-use/rowid-double/query.sql new file mode 100644 index 0000000..dc0ceed --- /dev/null +++ b/tests/normal-use/rowid-double/query.sql @@ -0,0 +1,2 @@ +select int8_1 FROM dataset where rowid = 51.0; +.output diff --git a/tests/normal-use/rowid-double/results.txt b/tests/normal-use/rowid-double/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/rowid-double/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/rowid-eq-string/query.sql b/tests/normal-use/rowid-eq-string/query.sql new file mode 100644 index 0000000..2d49899 --- /dev/null +++ b/tests/normal-use/rowid-eq-string/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid = '1'; +.output diff --git a/tests/normal-use/rowid-eq-string/results.txt b/tests/normal-use/rowid-eq-string/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/rowid-eq-string/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/rowid-group-by/query.sql b/tests/normal-use/rowid-group-by/query.sql new file mode 100644 index 0000000..e9cb00c --- /dev/null +++ b/tests/normal-use/rowid-group-by/query.sql @@ -0,0 +1,2 @@ +select rowid % 10, count(*) FROM dataset group by 1 order by 1; +.output diff --git a/tests/normal-use/rowid-group-by/results.txt b/tests/normal-use/rowid-group-by/results.txt new file mode 100644 index 0000000..a4d9cb2 --- /dev/null +++ b/tests/normal-use/rowid-group-by/results.txt @@ -0,0 +1,10 @@ +0|9 +1|10 +2|10 +3|10 +4|10 +5|10 +6|10 +7|10 +8|10 +9|10 diff --git a/tests/normal-use/rowid-gt-0/query.sql b/tests/normal-use/rowid-gt-0/query.sql new file mode 100644 index 0000000..c3961cc --- /dev/null +++ b/tests/normal-use/rowid-gt-0/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid > 1; +.output diff --git a/tests/normal-use/rowid-gt-0/results.txt b/tests/normal-use/rowid-gt-0/results.txt new file mode 100644 index 0000000..6529ff8 --- /dev/null +++ b/tests/normal-use/rowid-gt-0/results.txt @@ -0,0 +1 @@ +98 diff --git a/tests/normal-use/rowid-gt-none/query.sql b/tests/normal-use/rowid-gt-none/query.sql new file mode 100644 index 0000000..daaa664 --- /dev/null +++ b/tests/normal-use/rowid-gt-none/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid > 100; +.output diff --git a/tests/normal-use/rowid-gt-none/results.txt b/tests/normal-use/rowid-gt-none/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/rowid-gt-none/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/rowid-gte-0/query.sql b/tests/normal-use/rowid-gte-0/query.sql new file mode 100644 index 0000000..302cdbe --- /dev/null +++ b/tests/normal-use/rowid-gte-0/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid >= 0; +.output diff --git a/tests/normal-use/rowid-gte-0/results.txt b/tests/normal-use/rowid-gte-0/results.txt new file mode 100644 index 0000000..3ad5abd --- /dev/null +++ b/tests/normal-use/rowid-gte-0/results.txt @@ -0,0 +1 @@ +99 diff --git a/tests/normal-use/rowid-gte-none/query.sql b/tests/normal-use/rowid-gte-none/query.sql new file mode 100644 index 0000000..d7ef0e2 --- /dev/null +++ b/tests/normal-use/rowid-gte-none/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid >= 100; +.output diff --git a/tests/normal-use/rowid-gte-none/results.txt b/tests/normal-use/rowid-gte-none/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/rowid-gte-none/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/rowid-is-not-null/query.sql b/tests/normal-use/rowid-is-not-null/query.sql new file mode 100644 index 0000000..2ad3150 --- /dev/null +++ b/tests/normal-use/rowid-is-not-null/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid is not null; +.output diff --git a/tests/normal-use/rowid-is-not-null/results.txt b/tests/normal-use/rowid-is-not-null/results.txt new file mode 100644 index 0000000..3ad5abd --- /dev/null +++ b/tests/normal-use/rowid-is-not-null/results.txt @@ -0,0 +1 @@ +99 diff --git a/tests/normal-use/rowid-is-null/query.sql b/tests/normal-use/rowid-is-null/query.sql new file mode 100644 index 0000000..8507a70 --- /dev/null +++ b/tests/normal-use/rowid-is-null/query.sql @@ -0,0 +1,2 @@ +SELECT * FROM nulls WHERE rowid IS NULL; +.output diff --git a/tests/normal-use/rowid-is-null/results.txt b/tests/normal-use/rowid-is-null/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/rowid-lt-none/query.sql b/tests/normal-use/rowid-lt-none/query.sql new file mode 100644 index 0000000..cc1d129 --- /dev/null +++ b/tests/normal-use/rowid-lt-none/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid < 0; +.output diff --git a/tests/normal-use/rowid-lt-none/results.txt b/tests/normal-use/rowid-lt-none/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/rowid-lt-none/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/rowid-lt-one/query.sql b/tests/normal-use/rowid-lt-one/query.sql new file mode 100644 index 0000000..722164f --- /dev/null +++ b/tests/normal-use/rowid-lt-one/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid < 2; +.output diff --git a/tests/normal-use/rowid-lt-one/results.txt b/tests/normal-use/rowid-lt-one/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/rowid-lt-one/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/rowid-lte-none/query.sql b/tests/normal-use/rowid-lte-none/query.sql new file mode 100644 index 0000000..1aceaf8 --- /dev/null +++ b/tests/normal-use/rowid-lte-none/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid < -1; +.output diff --git a/tests/normal-use/rowid-lte-none/results.txt b/tests/normal-use/rowid-lte-none/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/rowid-lte-none/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/rowid-lte-one/query.sql b/tests/normal-use/rowid-lte-one/query.sql new file mode 100644 index 0000000..fe20800 --- /dev/null +++ b/tests/normal-use/rowid-lte-one/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid <= 1; +.output diff --git a/tests/normal-use/rowid-lte-one/results.txt b/tests/normal-use/rowid-lte-one/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/rowid-lte-one/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/rowid-ne-some/query.sql b/tests/normal-use/rowid-ne-some/query.sql new file mode 100644 index 0000000..d7d58f8 --- /dev/null +++ b/tests/normal-use/rowid-ne-some/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where rowid <> 1; +.output diff --git a/tests/normal-use/rowid-ne-some/results.txt b/tests/normal-use/rowid-ne-some/results.txt new file mode 100644 index 0000000..6529ff8 --- /dev/null +++ b/tests/normal-use/rowid-ne-some/results.txt @@ -0,0 +1 @@ +98 diff --git a/tests/normal-use/string-7-is-not-null/query.sql b/tests/normal-use/string-7-is-not-null/query.sql new file mode 100644 index 0000000..a1a502e --- /dev/null +++ b/tests/normal-use/string-7-is-not-null/query.sql @@ -0,0 +1,2 @@ +select rowid, bool_0, quote(binary_10) FROM dataset where string_7 is not null; +.output diff --git a/tests/normal-use/string-7-is-not-null/results.txt b/tests/normal-use/string-7-is-not-null/results.txt new file mode 100644 index 0000000..c37cfde --- /dev/null +++ b/tests/normal-use/string-7-is-not-null/results.txt @@ -0,0 +1,50 @@ +1|1|X'00' +2|0|X'01' +3|1|X'02' +4|0|X'03' +5|1|X'04' +6|0|X'05' +7|1|X'06' +8|0|X'07' +9|1|X'08' +10|0|X'09' +21||NULL +23||NULL +25||NULL +27||NULL +29||NULL +31||NULL +33||NULL +35||NULL +37||NULL +39||NULL +41||NULL +43||NULL +45||NULL +47||NULL +49||NULL +51||NULL +53||NULL +55||NULL +57||NULL +59||NULL +61||NULL +63||NULL +65||NULL +67||NULL +69||NULL +71||NULL +73||NULL +75||NULL +77||NULL +79||NULL +81||NULL +83||NULL +85||NULL +87||NULL +89||NULL +91||NULL +93||NULL +95||NULL +97||NULL +99||NULL diff --git a/tests/normal-use/string-7-is-null/query.sql b/tests/normal-use/string-7-is-null/query.sql new file mode 100644 index 0000000..67baa60 --- /dev/null +++ b/tests/normal-use/string-7-is-null/query.sql @@ -0,0 +1,2 @@ +select rowid, bool_0, quote(binary_10) FROM dataset where string_7 is null; +.output diff --git a/tests/normal-use/string-7-is-null/results.txt b/tests/normal-use/string-7-is-null/results.txt new file mode 100644 index 0000000..7a89b3b --- /dev/null +++ b/tests/normal-use/string-7-is-null/results.txt @@ -0,0 +1,49 @@ +11||NULL +12||NULL +13||NULL +14||NULL +15||NULL +16||NULL +17||NULL +18||NULL +19||NULL +20||NULL +22|0|X'15' +24|0|X'17' +26|0|X'19' +28|0|X'1B' +30|0|X'1D' +32|0|X'1F' +34|0|X'21' +36|0|X'23' +38|0|X'25' +40|0|X'27' +42|0|X'29' +44|0|X'2B' +46|0|X'2D' +48|0|X'2F' +50|0|X'31' +52|0|X'33' +54|0|X'35' +56|0|X'37' +58|0|X'39' +60|0|X'3B' +62|0|X'3D' +64|0|X'3F' +66|0|X'41' +68|0|X'43' +70|0|X'45' +72|0|X'47' +74|0|X'49' +76|0|X'4B' +78|0|X'4D' +80|0|X'4F' +82|0|X'51' +84|0|X'53' +86|0|X'55' +88|0|X'57' +90|0|X'59' +92|0|X'5B' +94|0|X'5D' +96|0|X'5F' +98|0|X'61' diff --git a/tests/normal-use/string-eq-double/query.sql b/tests/normal-use/string-eq-double/query.sql new file mode 100644 index 0000000..d39e662 --- /dev/null +++ b/tests/normal-use/string-eq-double/query.sql @@ -0,0 +1,2 @@ +select string_7 FROM dataset where string_7 = 22.0; +.output diff --git a/tests/normal-use/string-eq-double/results.txt b/tests/normal-use/string-eq-double/results.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/normal-use/string-eq-int/query.sql b/tests/normal-use/string-eq-int/query.sql new file mode 100644 index 0000000..a6a62df --- /dev/null +++ b/tests/normal-use/string-eq-int/query.sql @@ -0,0 +1,2 @@ +select string_7 FROM dataset where string_7 = 22; +.output diff --git a/tests/normal-use/string-eq-int/results.txt b/tests/normal-use/string-eq-int/results.txt new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/tests/normal-use/string-eq-int/results.txt @@ -0,0 +1 @@ +22 diff --git a/tests/normal-use/string-eq/query.sql b/tests/normal-use/string-eq/query.sql new file mode 100644 index 0000000..0eddeb3 --- /dev/null +++ b/tests/normal-use/string-eq/query.sql @@ -0,0 +1,2 @@ +select string_8 FROM dataset where string_8 = '021'; +.output diff --git a/tests/normal-use/string-eq/results.txt b/tests/normal-use/string-eq/results.txt new file mode 100644 index 0000000..589193e --- /dev/null +++ b/tests/normal-use/string-eq/results.txt @@ -0,0 +1 @@ +021 diff --git a/tests/normal-use/string-gt-lt/query.sql b/tests/normal-use/string-gt-lt/query.sql new file mode 100644 index 0000000..3f2356e --- /dev/null +++ b/tests/normal-use/string-gt-lt/query.sql @@ -0,0 +1,2 @@ +select string_8 FROM dataset where string_8 > '010' and string_8 < '024'; +.output diff --git a/tests/normal-use/string-gt-lt/results.txt b/tests/normal-use/string-gt-lt/results.txt new file mode 100644 index 0000000..619817d --- /dev/null +++ b/tests/normal-use/string-gt-lt/results.txt @@ -0,0 +1,2 @@ +021 +023 diff --git a/tests/normal-use/string-gte-lte/query.sql b/tests/normal-use/string-gte-lte/query.sql new file mode 100644 index 0000000..0122942 --- /dev/null +++ b/tests/normal-use/string-gte-lte/query.sql @@ -0,0 +1,2 @@ +select string_8 FROM dataset where string_8 >= '021' and string_8 <= '021'; +.output diff --git a/tests/normal-use/string-gte-lte/results.txt b/tests/normal-use/string-gte-lte/results.txt new file mode 100644 index 0000000..589193e --- /dev/null +++ b/tests/normal-use/string-gte-lte/results.txt @@ -0,0 +1 @@ +021 diff --git a/tests/normal-use/string-lte/query.sql b/tests/normal-use/string-lte/query.sql new file mode 100644 index 0000000..59f5947 --- /dev/null +++ b/tests/normal-use/string-lte/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where string_8 <= '003'; +.output diff --git a/tests/normal-use/string-lte/results.txt b/tests/normal-use/string-lte/results.txt new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/tests/normal-use/string-lte/results.txt @@ -0,0 +1 @@ +4 diff --git a/tests/normal-use/table-scan-1-rowgroup/query.sql b/tests/normal-use/table-scan-1-rowgroup/query.sql new file mode 100644 index 0000000..cbcd9b8 --- /dev/null +++ b/tests/normal-use/table-scan-1-rowgroup/query.sql @@ -0,0 +1,2 @@ +SELECT rowid, bool_0, int8_1, int16_2, int32_3, int64_4, datetime(ts_5 / 1000, 'unixepoch'), printf('%.2f', double_6) AS double_6, string_7, string_8, quote(binary_9), quote(binary_10) FROM dataset; +.output diff --git a/tests/normal-use/table-scan-1-rowgroup/results.txt b/tests/normal-use/table-scan-1-rowgroup/results.txt new file mode 100644 index 0000000..1691f79 --- /dev/null +++ b/tests/normal-use/table-scan-1-rowgroup/results.txt @@ -0,0 +1,99 @@ +1|1|50|5000|50000000|50000000000|1985-07-20 00:00:00|99.00|0|000|X'00'|X'00' +2|0|49|4900|49000000|49000000000|1985-07-21 00:00:00|49.50|1|001|X'0101'|X'01' +3|1|48|4800|48000000|48000000000|1985-07-22 00:00:00|33.00|2|002|X'020202'|X'02' +4|0|47|4700|47000000|47000000000|1985-07-23 00:00:00|24.75|3|003|X'03030303'|X'03' +5|1|46|4600|46000000|46000000000|1985-07-24 00:00:00|19.80|4|004|X'0404040404'|X'04' +6|0|45|4500|45000000|45000000000|1985-07-25 00:00:00|16.50|5|005|X'05'|X'05' +7|1|44|4400|44000000|44000000000|1985-07-26 00:00:00|14.14|6|006|X'0606'|X'06' +8|0|43|4300|43000000|43000000000|1985-07-27 00:00:00|12.38|7|007|X'070707'|X'07' +9|1|42|4200|42000000|42000000000|1985-07-28 00:00:00|11.00|8|008|X'08080808'|X'08' +10|0|41|4100|41000000|41000000000|1985-07-29 00:00:00|9.90|9|009|X'0909090909'|X'09' +11|1|40|4000|40000000|40000000000|1985-07-30 00:00:00|9.00|10|010|X'0A'|X'0A' +12|0|39|3900|39000000|39000000000|1985-07-31 00:00:00|8.25|11|011|X'0B0B'|X'0B' +13|1|38|3800|38000000|38000000000|1985-08-01 00:00:00|7.62|12|012|X'0C0C0C'|X'0C' +14|0|37|3700|37000000|37000000000|1985-08-02 00:00:00|7.07|13|013|X'0D0D0D0D'|X'0D' +15|1|36|3600|36000000|36000000000|1985-08-03 00:00:00|6.60|14|014|X'0E0E0E0E0E'|X'0E' +16|0|35|3500|35000000|35000000000|1985-08-04 00:00:00|6.19|15|015|X'0F'|X'0F' +17|1|34|3400|34000000|34000000000|1985-08-05 00:00:00|5.82|16|016|X'1010'|X'10' +18|0|33|3300|33000000|33000000000|1985-08-06 00:00:00|5.50|17|017|X'111111'|X'11' +19|1|32|3200|32000000|32000000000|1985-08-07 00:00:00|5.21|18|018|X'12121212'|X'12' +20|0|31|3100|31000000|31000000000|1985-08-08 00:00:00|4.95|19|019|X'1313131313'|X'13' +21|1|30|3000|30000000|30000000000|1985-08-09 00:00:00|4.71|20|020|X'14'|X'14' +22|0|29|2900|29000000|29000000000|1985-08-10 00:00:00|4.50|21|021|X'1515'|X'15' +23|1|28|2800|28000000|28000000000|1985-08-11 00:00:00|4.30|22|022|X'161616'|X'16' +24|0|27|2700|27000000|27000000000|1985-08-12 00:00:00|4.13|23|023|X'17171717'|X'17' +25|1|26|2600|26000000|26000000000|1985-08-13 00:00:00|3.96|24|024|X'1818181818'|X'18' +26|0|25|2500|25000000|25000000000|1985-08-14 00:00:00|3.81|25|025|X'19'|X'19' +27|1|24|2400|24000000|24000000000|1985-08-15 00:00:00|3.67|26|026|X'1A1A'|X'1A' +28|0|23|2300|23000000|23000000000|1985-08-16 00:00:00|3.54|27|027|X'1B1B1B'|X'1B' +29|1|22|2200|22000000|22000000000|1985-08-17 00:00:00|3.41|28|028|X'1C1C1C1C'|X'1C' +30|0|21|2100|21000000|21000000000|1985-08-18 00:00:00|3.30|29|029|X'1D1D1D1D1D'|X'1D' +31|1|20|2000|20000000|20000000000|1985-08-19 00:00:00|3.19|30|030|X'1E'|X'1E' +32|0|19|1900|19000000|19000000000|1985-08-20 00:00:00|3.09|31|031|X'1F1F'|X'1F' +33|1|18|1800|18000000|18000000000|1985-08-21 00:00:00|3.00|32|032|X'202020'|X'20' +34|0|17|1700|17000000|17000000000|1985-08-22 00:00:00|2.91|33|033|X'21212121'|X'21' +35|1|16|1600|16000000|16000000000|1985-08-23 00:00:00|2.83|34|034|X'2222222222'|X'22' +36|0|15|1500|15000000|15000000000|1985-08-24 00:00:00|2.75|35|035|X'23'|X'23' +37|1|14|1400|14000000|14000000000|1985-08-25 00:00:00|2.68|36|036|X'2424'|X'24' +38|0|13|1300|13000000|13000000000|1985-08-26 00:00:00|2.61|37|037|X'252525'|X'25' +39|1|12|1200|12000000|12000000000|1985-08-27 00:00:00|2.54|38|038|X'26262626'|X'26' +40|0|11|1100|11000000|11000000000|1985-08-28 00:00:00|2.48|39|039|X'2727272727'|X'27' +41|1|10|1000|10000000|10000000000|1985-08-29 00:00:00|2.41|40|040|X'28'|X'28' +42|0|9|900|9000000|9000000000|1985-08-30 00:00:00|2.36|41|041|X'2929'|X'29' +43|1|8|800|8000000|8000000000|1985-08-31 00:00:00|2.30|42|042|X'2A2A2A'|X'2A' +44|0|7|700|7000000|7000000000|1985-09-01 00:00:00|2.25|43|043|X'2B2B2B2B'|X'2B' +45|1|6|600|6000000|6000000000|1985-09-02 00:00:00|2.20|44|044|X'2C2C2C2C2C'|X'2C' +46|0|5|500|5000000|5000000000|1985-09-03 00:00:00|2.15|45|045|X'2D'|X'2D' +47|1|4|400|4000000|4000000000|1985-09-04 00:00:00|2.11|46|046|X'2E2E'|X'2E' +48|0|3|300|3000000|3000000000|1985-09-05 00:00:00|2.06|47|047|X'2F2F2F'|X'2F' +49|1|2|200|2000000|2000000000|1985-09-06 00:00:00|2.02|48|048|X'30303030'|X'30' +50|0|1|100|1000000|1000000000|1985-09-07 00:00:00|1.98|49|049|X'3131313131'|X'31' +51|1|0|0|0|0|1985-09-08 00:00:00|1.94|50|050|X'32'|X'32' +52|0|-1|-100|-1000000|-1000000000|1985-09-09 00:00:00|1.90|51|051|X'3333'|X'33' +53|1|-2|-200|-2000000|-2000000000|1985-09-10 00:00:00|1.87|52|052|X'343434'|X'34' +54|0|-3|-300|-3000000|-3000000000|1985-09-11 00:00:00|1.83|53|053|X'35353535'|X'35' +55|1|-4|-400|-4000000|-4000000000|1985-09-12 00:00:00|1.80|54|054|X'3636363636'|X'36' +56|0|-5|-500|-5000000|-5000000000|1985-09-13 00:00:00|1.77|55|055|X'37'|X'37' +57|1|-6|-600|-6000000|-6000000000|1985-09-14 00:00:00|1.74|56|056|X'3838'|X'38' +58|0|-7|-700|-7000000|-7000000000|1985-09-15 00:00:00|1.71|57|057|X'393939'|X'39' +59|1|-8|-800|-8000000|-8000000000|1985-09-16 00:00:00|1.68|58|058|X'3A3A3A3A'|X'3A' +60|0|-9|-900|-9000000|-9000000000|1985-09-17 00:00:00|1.65|59|059|X'3B3B3B3B3B'|X'3B' +61|1|-10|-1000|-10000000|-10000000000|1985-09-18 00:00:00|1.62|60|060|X'3C'|X'3C' +62|0|-11|-1100|-11000000|-11000000000|1985-09-19 00:00:00|1.60|61|061|X'3D3D'|X'3D' +63|1|-12|-1200|-12000000|-12000000000|1985-09-20 00:00:00|1.57|62|062|X'3E3E3E'|X'3E' +64|0|-13|-1300|-13000000|-13000000000|1985-09-21 00:00:00|1.55|63|063|X'3F3F3F3F'|X'3F' +65|1|-14|-1400|-14000000|-14000000000|1985-09-22 00:00:00|1.52|64|064|X'4040404040'|X'40' +66|0|-15|-1500|-15000000|-15000000000|1985-09-23 00:00:00|1.50|65|065|X'41'|X'41' +67|1|-16|-1600|-16000000|-16000000000|1985-09-24 00:00:00|1.48|66|066|X'4242'|X'42' +68|0|-17|-1700|-17000000|-17000000000|1985-09-25 00:00:00|1.46|67|067|X'434343'|X'43' +69|1|-18|-1800|-18000000|-18000000000|1985-09-26 00:00:00|1.43|68|068|X'44444444'|X'44' +70|0|-19|-1900|-19000000|-19000000000|1985-09-27 00:00:00|1.41|69|069|X'4545454545'|X'45' +71|1|-20|-2000|-20000000|-20000000000|1985-09-28 00:00:00|1.39|70|070|X'46'|X'46' +72|0|-21|-2100|-21000000|-21000000000|1985-09-29 00:00:00|1.38|71|071|X'4747'|X'47' +73|1|-22|-2200|-22000000|-22000000000|1985-09-30 00:00:00|1.36|72|072|X'484848'|X'48' +74|0|-23|-2300|-23000000|-23000000000|1985-10-01 00:00:00|1.34|73|073|X'49494949'|X'49' +75|1|-24|-2400|-24000000|-24000000000|1985-10-02 00:00:00|1.32|74|074|X'4A4A4A4A4A'|X'4A' +76|0|-25|-2500|-25000000|-25000000000|1985-10-03 00:00:00|1.30|75|075|X'4B'|X'4B' +77|1|-26|-2600|-26000000|-26000000000|1985-10-04 00:00:00|1.29|76|076|X'4C4C'|X'4C' +78|0|-27|-2700|-27000000|-27000000000|1985-10-05 00:00:00|1.27|77|077|X'4D4D4D'|X'4D' +79|1|-28|-2800|-28000000|-28000000000|1985-10-06 00:00:00|1.25|78|078|X'4E4E4E4E'|X'4E' +80|0|-29|-2900|-29000000|-29000000000|1985-10-07 00:00:00|1.24|79|079|X'4F4F4F4F4F'|X'4F' +81|1|-30|-3000|-30000000|-30000000000|1985-10-08 00:00:00|1.22|80|080|X'50'|X'50' +82|0|-31|-3100|-31000000|-31000000000|1985-10-09 00:00:00|1.21|81|081|X'5151'|X'51' +83|1|-32|-3200|-32000000|-32000000000|1985-10-10 00:00:00|1.19|82|082|X'525252'|X'52' +84|0|-33|-3300|-33000000|-33000000000|1985-10-11 00:00:00|1.18|83|083|X'53535353'|X'53' +85|1|-34|-3400|-34000000|-34000000000|1985-10-12 00:00:00|1.16|84|084|X'5454545454'|X'54' +86|0|-35|-3500|-35000000|-35000000000|1985-10-13 00:00:00|1.15|85|085|X'55'|X'55' +87|1|-36|-3600|-36000000|-36000000000|1985-10-14 00:00:00|1.14|86|086|X'5656'|X'56' +88|0|-37|-3700|-37000000|-37000000000|1985-10-15 00:00:00|1.13|87|087|X'575757'|X'57' +89|1|-38|-3800|-38000000|-38000000000|1985-10-16 00:00:00|1.11|88|088|X'58585858'|X'58' +90|0|-39|-3900|-39000000|-39000000000|1985-10-17 00:00:00|1.10|89|089|X'5959595959'|X'59' +91|1|-40|-4000|-40000000|-40000000000|1985-10-18 00:00:00|1.09|90|090|X'5A'|X'5A' +92|0|-41|-4100|-41000000|-41000000000|1985-10-19 00:00:00|1.08|91|091|X'5B5B'|X'5B' +93|1|-42|-4200|-42000000|-42000000000|1985-10-20 00:00:00|1.06|92|092|X'5C5C5C'|X'5C' +94|0|-43|-4300|-43000000|-43000000000|1985-10-21 00:00:00|1.05|93|093|X'5D5D5D5D'|X'5D' +95|1|-44|-4400|-44000000|-44000000000|1985-10-22 00:00:00|1.04|94|094|X'5E5E5E5E5E'|X'5E' +96|0|-45|-4500|-45000000|-45000000000|1985-10-23 00:00:00|1.03|95|095|X'5F'|X'5F' +97|1|-46|-4600|-46000000|-46000000000|1985-10-24 00:00:00|1.02|96|096|X'6060'|X'60' +98|0|-47|-4700|-47000000|-47000000000|1985-10-25 00:00:00|1.01|97|097|X'616161'|X'61' +99|1|-48|-4800|-48000000|-48000000000|1985-10-26 00:00:00|1.00|98|098|X'62626262'|X'62' diff --git a/tests/normal-use/ts-eq-july-20/query.sql b/tests/normal-use/ts-eq-july-20/query.sql new file mode 100644 index 0000000..d85f667 --- /dev/null +++ b/tests/normal-use/ts-eq-july-20/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where ts_5 = 490665600000; +.output diff --git a/tests/normal-use/ts-eq-july-20/results.txt b/tests/normal-use/ts-eq-july-20/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/ts-eq-july-20/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/ts-gt-july-20/query.sql b/tests/normal-use/ts-gt-july-20/query.sql new file mode 100644 index 0000000..3384639 --- /dev/null +++ b/tests/normal-use/ts-gt-july-20/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where ts_5 > 490665600000; +.output diff --git a/tests/normal-use/ts-gt-july-20/results.txt b/tests/normal-use/ts-gt-july-20/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/ts-gt-july-20/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/ts-gte-july-20/query.sql b/tests/normal-use/ts-gte-july-20/query.sql new file mode 100644 index 0000000..bb85a5c --- /dev/null +++ b/tests/normal-use/ts-gte-july-20/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where ts_5 >= 490665600000; +.output diff --git a/tests/normal-use/ts-gte-july-20/results.txt b/tests/normal-use/ts-gte-july-20/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/ts-gte-july-20/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/ts-lt-july-20/query.sql b/tests/normal-use/ts-lt-july-20/query.sql new file mode 100644 index 0000000..2412304 --- /dev/null +++ b/tests/normal-use/ts-lt-july-20/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where ts_5 < 490665600000; +.output diff --git a/tests/normal-use/ts-lt-july-20/results.txt b/tests/normal-use/ts-lt-july-20/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/ts-lt-july-20/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/ts-lte-july-20/query.sql b/tests/normal-use/ts-lte-july-20/query.sql new file mode 100644 index 0000000..3df3b4a --- /dev/null +++ b/tests/normal-use/ts-lte-july-20/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where ts_5 <= 490665600000; +.output diff --git a/tests/normal-use/ts-lte-july-20/results.txt b/tests/normal-use/ts-lte-july-20/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/ts-lte-july-20/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/ts-ne-july-20/query.sql b/tests/normal-use/ts-ne-july-20/query.sql new file mode 100644 index 0000000..9550d7e --- /dev/null +++ b/tests/normal-use/ts-ne-july-20/query.sql @@ -0,0 +1,2 @@ +select count(*) FROM dataset where ts_5 <> 490665600000; +.output diff --git a/tests/normal-use/ts-ne-july-20/results.txt b/tests/normal-use/ts-ne-july-20/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/ts-ne-july-20/results.txt @@ -0,0 +1 @@ +49 diff --git a/tests/normal-use/unusable-constraint/query.sql b/tests/normal-use/unusable-constraint/query.sql new file mode 100644 index 0000000..4c0bf7e --- /dev/null +++ b/tests/normal-use/unusable-constraint/query.sql @@ -0,0 +1,2 @@ +select nn1.int8_1 FROM dataset nn1 join dataset nn2 using (int8_1) where nn1.int8_1 = 0; +.output diff --git a/tests/normal-use/unusable-constraint/results.txt b/tests/normal-use/unusable-constraint/results.txt new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/normal-use/unusable-constraint/results.txt @@ -0,0 +1 @@ +0 diff --git a/tests/normal-use/var-bytearray-eq/query.sql b/tests/normal-use/var-bytearray-eq/query.sql new file mode 100644 index 0000000..f53f82e --- /dev/null +++ b/tests/normal-use/var-bytearray-eq/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_9 = X'020202'; +.output diff --git a/tests/normal-use/var-bytearray-eq/results.txt b/tests/normal-use/var-bytearray-eq/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/var-bytearray-eq/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/var-bytearray-gt/query.sql b/tests/normal-use/var-bytearray-gt/query.sql new file mode 100644 index 0000000..8ae75bd --- /dev/null +++ b/tests/normal-use/var-bytearray-gt/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_9 > X''; +.output diff --git a/tests/normal-use/var-bytearray-gt/results.txt b/tests/normal-use/var-bytearray-gt/results.txt new file mode 100644 index 0000000..e373ee6 --- /dev/null +++ b/tests/normal-use/var-bytearray-gt/results.txt @@ -0,0 +1 @@ +50 diff --git a/tests/normal-use/var-bytearray-gte/query.sql b/tests/normal-use/var-bytearray-gte/query.sql new file mode 100644 index 0000000..33bbb0c --- /dev/null +++ b/tests/normal-use/var-bytearray-gte/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_9 >= X'62626262'; +.output diff --git a/tests/normal-use/var-bytearray-gte/results.txt b/tests/normal-use/var-bytearray-gte/results.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/normal-use/var-bytearray-gte/results.txt @@ -0,0 +1 @@ +1 diff --git a/tests/normal-use/var-bytearray-lt/query.sql b/tests/normal-use/var-bytearray-lt/query.sql new file mode 100644 index 0000000..cb66e60 --- /dev/null +++ b/tests/normal-use/var-bytearray-lt/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_9 < X'020202'; +.output diff --git a/tests/normal-use/var-bytearray-lt/results.txt b/tests/normal-use/var-bytearray-lt/results.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/tests/normal-use/var-bytearray-lt/results.txt @@ -0,0 +1 @@ +2 diff --git a/tests/normal-use/var-bytearray-lte/query.sql b/tests/normal-use/var-bytearray-lte/query.sql new file mode 100644 index 0000000..1f691c8 --- /dev/null +++ b/tests/normal-use/var-bytearray-lte/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_9 <= X'0101'; +.output diff --git a/tests/normal-use/var-bytearray-lte/results.txt b/tests/normal-use/var-bytearray-lte/results.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/tests/normal-use/var-bytearray-lte/results.txt @@ -0,0 +1 @@ +2 diff --git a/tests/normal-use/var-bytearray-ne/query.sql b/tests/normal-use/var-bytearray-ne/query.sql new file mode 100644 index 0000000..9059393 --- /dev/null +++ b/tests/normal-use/var-bytearray-ne/query.sql @@ -0,0 +1,2 @@ +SELECT COUNT(*) FROM dataset WHERE binary_9 <> X'62626262'; +.output diff --git a/tests/normal-use/var-bytearray-ne/results.txt b/tests/normal-use/var-bytearray-ne/results.txt new file mode 100644 index 0000000..95f9650 --- /dev/null +++ b/tests/normal-use/var-bytearray-ne/results.txt @@ -0,0 +1 @@ +49