We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fabeda commit f94686cCopy full SHA for f94686c
apis/python/src/tiledb/vector_search/index.py
@@ -154,14 +154,14 @@ def __init__(
154
155
dtype = group.meta.get("dtype", None)
156
if dtype is None:
157
- schema = tiledb.ArraySchema.load(self.parts_db_uri)
+ schema = tiledb.ArraySchema.load(self.parts_db_uri, ctx=self.ctx)
158
self.dtype = np.dtype(schema.attr("values").dtype)
159
else:
160
self.dtype = np.dtype(dtype)
161
162
self.partitions = group.meta.get("partitions", -1)
163
if self.partitions == -1:
164
- schema = tiledb.ArraySchema.load(self.centroids_uri)
+ schema = tiledb.ArraySchema.load(self.centroids_uri, ctx=self.ctx)
165
self.partitions = schema.domain.dim("cols").domain[1] + 1
166
167
def query(
0 commit comments