Skip to content

Commit

Permalink
log output in db-bench
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Feb 16, 2022
1 parent e221fae commit 25b0294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py-polars/tests/db-benchmark/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,14 @@
)
assert out["id6"] == 430957682
assert np.isclose(out["v3"], 4.724150165888001e6)
print(out)

out = (
x.filter(~(pl.col("id1") == pl.lit("id046")))
.select([pl.sum("id6"), pl.sum("v3")])
.collect()
)
print(out)

assert out["id6"] == 2137755425
assert np.isclose(out["v3"], 4.7040828499563754e8)

0 comments on commit 25b0294

Please sign in to comment.