Skip to content

Commit 0fb1f72

Browse files
committed
Limit output of test
1 parent 4384dff commit 0fb1f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_issue31.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ def download_and_extract(url, save_path):
3333
def payload():
3434
now = time.time()
3535
res = chdb.query(
36-
'select Name, count(*) cnt from file("organizations-2000000.csv", CSVWithNames) group by Name order by cnt desc',
36+
'select Name, count(*) cnt from file("organizations-2000000.csv", CSVWithNames) group by Name order by cnt desc limit 10000',
3737
"CSV",
3838
)
3939
# calculate md5 of the result
4040
hash_out = hashlib.md5(res.get_memview().tobytes()).hexdigest()
4141
print("output length: ", len(res.get_memview().tobytes()))
42-
if hash_out != "60833f6ba30f2892f1fda976b2088570":
42+
if hash_out != "0e86b00c00da5dbbeb3e99e5cd783252":
4343
print(res.get_memview().tobytes().decode("utf-8"))
4444
raise Exception(f"md5 not match {hash_out}")
4545
used_time = time.time() - now

0 commit comments

Comments
 (0)