mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-10-25 01:49:56 +00:00
ensureColumn catches up when rows are skipped
This commit is contained in:
3
tests/queries/003-cross-join-count-1-rowgroup.sql
Normal file
3
tests/queries/003-cross-join-count-1-rowgroup.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
100-rows-1.parquet
|
||||
select count(*) from (select * from test t1, test t2);
|
||||
10000
|
||||
3
tests/queries/005-rowid-1-rowgroup.sql
Normal file
3
tests/queries/005-rowid-1-rowgroup.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
100-rows-1.parquet
|
||||
select int8_1 from test where rowid = 50;
|
||||
0
|
||||
3
tests/queries/006-rowid-10-rowgroups.sql
Normal file
3
tests/queries/006-rowid-10-rowgroups.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
100-rows-10.parquet
|
||||
select int8_1 from test where rowid = 50;
|
||||
0
|
||||
3
tests/queries/007-rowid-55-10-rowgroups.sql
Normal file
3
tests/queries/007-rowid-55-10-rowgroups.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
100-rows-10.parquet
|
||||
select int8_1 from test where rowid = 55;
|
||||
-5
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user