Skip to content

Commit

Permalink
Checki if group exists before deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaosPapailiou committed Nov 28, 2023
1 parent f00bd74 commit a331d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/python/src/tiledb/vector_search/ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ def consolidate_and_vacuum(
# TODO remove temp data for tiledb URIs
if not index_group_uri.startswith("tiledb://"):
group = tiledb.Group(index_group_uri, "r")
if group.__contains__(PARTIAL_WRITE_ARRAY_DIR):
if PARTIAL_WRITE_ARRAY_DIR in group:
group.close()
group = tiledb.Group(index_group_uri, "w")
group.remove(PARTIAL_WRITE_ARRAY_DIR)
Expand Down

0 comments on commit a331d3b

Please sign in to comment.