Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable consolidate_update_fragments for TileDB Cloud URIs #536

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

NikolaosPapailiou
Copy link
Collaborator

@NikolaosPapailiou NikolaosPapailiou commented Oct 1, 2024

Disable _consolidate_update_fragments for TileDB Cloud URIs.

Fragment consolidation is not supported in TileDB Cloud.

@ypatia
Copy link
Member

ypatia commented Oct 1, 2024

[sc-56613]

Copy link
Member

@ypatia ypatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if you checked that that's the only place in vector search repo that tiledb.consolidate can be called for tiledb:// arrays.

@@ -800,6 +800,10 @@ def _set_has_updates(self, has_updates: bool = True):
self.group = tiledb.Group(self.uri, "r", ctx=tiledb.Ctx(self.config))

def _consolidate_update_fragments(self):
# Disable update fragment consolidation for TileDB Cloud URIs
# as this is not supported.
if self.uri.startswith("tiledb://"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should log a message here (once only) at a low threshold (debug level).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a warning for this

@NikolaosPapailiou NikolaosPapailiou merged commit 3b95816 into main Oct 2, 2024
5 of 6 checks passed
@NikolaosPapailiou NikolaosPapailiou deleted the npapa/tiledb_consolidate_update_fragments branch October 2, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants