Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Feb 10, 2025
1 parent fa756ce commit 2b4028e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions integration-tests/bats/sql.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1062,18 +1062,17 @@ SQL
c varchar(80),
d datetime
);
insert into test values (1, 1.5, "1", "2020-01-01");
SQL

echo "show tables;" > in.sql
echo "select * from test;" > in.sql

run dolt sql -r parquet -f in.sql > out.parquet 2> out.txt
[ $status -eq 0 ]

parquet cat out.parquet
run parquet cat out.parquet
[ $status -eq 0 ]
[[ "$output" =~ "Tables_in_" ]] || false
[[ "$output" =~ "test" ]] || false
[ "${#lines[@]}" -eq 8 ]
[[ ! "$output" =~ "Processed" ]] || false

run cat out.txt
Expand Down

0 comments on commit 2b4028e

Please sign in to comment.