Skip to content

Commit

Permalink
fix: test non exist stats
Browse files Browse the repository at this point in the history
  • Loading branch information
nmreadelf committed Jan 9, 2024
1 parent 1fb141a commit fe0eeb3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def test_csv_stats(self):
print(f"SQL read {ret.rows_read()} rows, {ret.bytes_read()} bytes, elapsed {ret.elapsed()} seconds")

def test_non_exist_stats(self):
ret = chdb.query("SELECT * FROM file('notexist.parquet', Parquet)", "Parquet")
self.assertEqual(ret.rows_read(), 0)
self.assertEqual(ret.bytes_read(), 0)
print(f"SQL read {ret.rows_read()} rows, {ret.bytes_read()} bytes, elapsed {ret.elapsed()} seconds")
with self.assertRaises(Exception):
ret = chdb.query("SELECT * FROM file('notexist.parquet', Parquet)", "Parquet")


if __name__ == "__main__":
Expand Down

0 comments on commit fe0eeb3

Please sign in to comment.