1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-10-27 01:59:56 +00:00

ensureColumn catches up when rows are skipped

This commit is contained in:
Colin Dellow
2018-03-04 22:29:35 -05:00
parent bb3a9440f7
commit 67005623df
11 changed files with 100 additions and 9 deletions

View File

@@ -23,13 +23,13 @@ main() {
root=$(readlink -f "$root")
cd "$root"
queries=$(find tests/queries -type f -name '*.sql')
queries=$(find tests/queries -type f -name '*.sql' | sort)
while read -r file; do
echo "Testing: $file"
parquet_file=$(head -n1 "$file")
query=$(head -n2 "$file" | tail -n1)
results=$(tail -n+3 "$file")
if ! "$root"/sqlite/sqlite3 -init <(run_query "$file" "$parquet_file" "$query") < /dev/null > /dev/null 2> testcase-err.txt; then
if ! "$root"/sqlite/sqlite3 -init <(run_query "$file" "$parquet_file" "$query") < /dev/null > testcase-stdout.txt 2> testcase-stderr.txt; then
echo "...FAILED; check testcase-{out,err}.txt" >&2
exit 1
fi