[Python] Do not return Table count for every add operation (#328)

`Table::count()` will be linearly slower with more fragments ingested.
This commit is contained in:
Lei Xu
2023-07-18 17:11:17 -07:00
committed by GitHub
parent 1d343edbd4
commit f09db4a6d6
3 changed files with 4 additions and 12 deletions

View File

@@ -139,8 +139,8 @@ def _add(table, schema):
# table = LanceTable(db, "test")
assert len(table) == 2
count = table.add([{"vector": [6.3, 100.5], "item": "new", "price": 30.0}])
assert count == 3
table.add([{"vector": [6.3, 100.5], "item": "new", "price": 30.0}])
assert len(table) == 3
expected = pa.Table.from_arrays(
[