From 147796ffcdac2da8d0c330bb2783286283a27e56 Mon Sep 17 00:00:00 2001 From: Rob Meng Date: Mon, 24 Jul 2023 21:30:57 -0400 Subject: [PATCH] bump lance version for vectordb, fix minor bugs in lancedb remote client (#365) --- Cargo.toml | 2 +- python/lancedb/remote/client.py | 2 +- python/lancedb/remote/db.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 85cf8838..715a20a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ resolver = "2" [workspace.dependencies] -lance = "=0.5.8" +lance = "=0.5.9" arrow-array = "42.0" arrow-data = "42.0" arrow-schema = "42.0" diff --git a/python/lancedb/remote/client.py b/python/lancedb/remote/client.py index b5f98933..bf48dd38 100644 --- a/python/lancedb/remote/client.py +++ b/python/lancedb/remote/client.py @@ -105,7 +105,7 @@ class RestfulLanceDBClient: async def post( self, uri: str, - data: Union[Dict[str, Any], BaseModel, bytes], + data: Optional[Union[Dict[str, Any], BaseModel, bytes]] = None, params: Optional[Dict[str, Any]] = None, content_type: Optional[str] = None, deserialize: Callable = lambda resp: resp.json(), diff --git a/python/lancedb/remote/db.py b/python/lancedb/remote/db.py index 8529d4f6..dcbb3332 100644 --- a/python/lancedb/remote/db.py +++ b/python/lancedb/remote/db.py @@ -103,7 +103,7 @@ class RemoteDBConnection(DBConnection): self._loop.run_until_complete( self._client.post( - f"/v1/table/{name}/create", + f"/v1/table/{name}/create/", data=data, params={"request_id": request_id}, content_type=ARROW_STREAM_CONTENT_TYPE,