From 723defbe7ed58b82a7aaa6156aefda3802ca9d64 Mon Sep 17 00:00:00 2001 From: QianZhu Date: Wed, 13 Mar 2024 08:47:54 -0700 Subject: [PATCH] add index_stats python api (#1096) the integration test will be covered in another PR: https://github.com/lancedb/sophon/pull/1876 --- python/python/lancedb/remote/table.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/python/lancedb/remote/table.py b/python/python/lancedb/remote/table.py index bbae9921..cb055d39 100644 --- a/python/python/lancedb/remote/table.py +++ b/python/python/lancedb/remote/table.py @@ -68,10 +68,16 @@ class RemoteTable(Table): def list_indices(self): """List all the indices on the table""" - print(self._name) resp = self._conn._client.post(f"/v1/table/{self._name}/index/list/") return resp + def index_stats(self, index_uuid: str): + """List all the indices on the table""" + resp = self._conn._client.post( + f"/v1/table/{self._name}/index/{index_uuid}/stats/" + ) + return resp + def create_scalar_index( self, column: str,