chore(python): add docstring for limit behavior (#800)

Closes #796
This commit is contained in:
Chang She
2024-01-09 20:20:13 -08:00
committed by Andrew Miracle
parent ff81c0d698
commit 91d64d86e0
2 changed files with 20 additions and 2 deletions

View File

@@ -569,6 +569,14 @@ def test_empty_query(db):
val = df.id.iloc[0]
assert val == 1
table = LanceTable.create(db, "my_table2", data=[{"id": i} for i in range(100)])
df = table.search().select(["id"]).to_pandas()
assert len(df) == 10
df = table.search().select(["id"]).limit(None).to_pandas()
assert len(df) == 100
df = table.search().select(["id"]).limit(-1).to_pandas()
assert len(df) == 100
def test_compact_cleanup(db):
table = LanceTable.create(