mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-05 19:32:56 +00:00
remote count_rows need to return the number (#1181)
This commit is contained in:
@@ -500,7 +500,10 @@ class RemoteTable(Table):
|
||||
|
||||
def count_rows(self, filter: Optional[str] = None) -> int:
|
||||
payload = {"predicate": filter}
|
||||
self._conn._client.post(f"/v1/table/{self._name}/count_rows/", data=payload)
|
||||
resp = self._conn._client.post(
|
||||
f"/v1/table/{self._name}/count_rows/", data=payload
|
||||
)
|
||||
return resp
|
||||
|
||||
def add_columns(self, transforms: Dict[str, str]):
|
||||
raise NotImplementedError(
|
||||
|
||||
Reference in New Issue
Block a user