Skip to content

Commit a331d3b

Browse files
author
Nikos Papailiou
committed
Checki if group exists before deleting
1 parent f00bd74 commit a331d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/python/src/tiledb/vector_search/ingestion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ def consolidate_and_vacuum(
17751775
# TODO remove temp data for tiledb URIs
17761776
if not index_group_uri.startswith("tiledb://"):
17771777
group = tiledb.Group(index_group_uri, "r")
1778-
if group.__contains__(PARTIAL_WRITE_ARRAY_DIR):
1778+
if PARTIAL_WRITE_ARRAY_DIR in group:
17791779
group.close()
17801780
group = tiledb.Group(index_group_uri, "w")
17811781
group.remove(PARTIAL_WRITE_ARRAY_DIR)

0 commit comments

Comments
 (0)