fix: test errors after setting default limit (#1891)

This commit is contained in:
QianZhu
2024-11-26 16:03:16 -08:00
committed by GitHub
parent 7b5e9d824a
commit 2616a50502
4 changed files with 14 additions and 8 deletions

View File

@@ -599,7 +599,9 @@ async def test_create_in_v2_mode(tmp_path):
)
async def is_in_v2_mode(tbl):
batches = await tbl.query().to_batches(max_batch_length=1024 * 10)
batches = (
await tbl.query().limit(10 * 1024).to_batches(max_batch_length=1024 * 10)
)
num_batches = 0
async for batch in batches:
num_batches += 1