docs: add cleanup_old_versions and compact_files to Table for documentation purposes (#900)

Closes #819
This commit is contained in:
Weston Pace
2024-02-01 15:06:00 -08:00
committed by GitHub
parent d77e95a4f4
commit cc9473a94a
2 changed files with 61 additions and 2 deletions

View File

@@ -359,6 +359,18 @@ class RemoteTable(Table):
payload = {"predicate": where, "updates": updates}
self._conn._client.post(f"/v1/table/{self._name}/update/", data=payload)
def cleanup_old_versions(self, *_):
"""cleanup_old_versions() is not supported on the LanceDB cloud"""
raise NotImplementedError(
"cleanup_old_versions() is not supported on the LanceDB cloud"
)
def compact_files(self, *_):
"""compact_files() is not supported on the LanceDB cloud"""
raise NotImplementedError(
"compact_files() is not supported on the LanceDB cloud"
)
def add_index(tbl: pa.Table, i: int) -> pa.Table:
return tbl.add_column(