diff --git a/tests/queries/008-nulls.sql b/tests/queries/008-nulls.sql new file mode 100644 index 0000000..7f58a56 --- /dev/null +++ b/tests/queries/008-nulls.sql @@ -0,0 +1,3 @@ +100-rows-nulls.parquet +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 fixed_size_binary IS NULL THEN 1 ELSE 0 END) from test; +50|50|50|50|50|50|50|50|50|50|50 diff --git a/tests/test-supported b/tests/test-supported index 759fda0..0333844 100755 --- a/tests/test-supported +++ b/tests/test-supported @@ -26,7 +26,7 @@ main() { supported_files=$(find . -type f -name '*.parquet' -not -name 'unsupported*.parquet') while read -r supported; do echo "Testing: $supported" - if ! "$root"/sqlite/sqlite3 -init <(load_supported "$supported") < /dev/null > /dev/null 2> testcase-err.txt; then + if ! "$root"/sqlite/sqlite3 -init <(load_supported "$supported") < /dev/null > /dev/null 2> testcase-stderr.txt; then echo "...FAILED; check testcase-{out,err}.txt" >&2 exit 1 fi diff --git a/tests/test-unsupported b/tests/test-unsupported index e5734ef..57d7ec4 100755 --- a/tests/test-unsupported +++ b/tests/test-unsupported @@ -25,7 +25,7 @@ main() { unsupported_files=$(find . -type f -name 'unsupported*.parquet') while read -r unsupported; do echo "Testing: $unsupported" - "$root"/sqlite/sqlite3 -init <(load_unsupported "$unsupported") < /dev/null > /dev/null 2> testcase-err.txt + "$root"/sqlite/sqlite3 -init <(load_unsupported "$unsupported") < /dev/null > /dev/null 2> testcase-stderr.txt # We expect the 'SELECT 123' command to NOT have been run if grep -q 123 testcase-out.txt; then echo "...FAILED; expected an error message. Check testcase-{out,err}.txt" >&2