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

Implement delete_fragments API #3400

Merged
merged 4 commits into from Aug 22, 2022
Merged

Implement delete_fragments API #3400

merged 4 commits into from Aug 22, 2022

Conversation

bekadavis9
Copy link
Contributor

@bekadavis9 bekadavis9 commented Jul 29, 2022

Implement delete_fragments API.

This API uses the existing FragmentConsolidator::vacuum to:

  1. vacuum fragments between specified timestamps
  2. delete the vacuumed fragments

Note that this API can only be invoked on an array that is open with the new QueryType::WRITE_EXCLUSIVE.


[sc-15852]


TYPE: FEATURE
DESC: Implement delete_fragments API

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #15852: Implement delete_fragments API.

CHECK(tiledb::test::num_fragments(array_name) == 3);
REQUIRE_THROWS_WITH(
array.delete_fragments(array_name, timestamp_start, timestamp_end),
Catch::Contains("Query type must be MODIFY_EXCLUSIVE"));
Copy link
Member

Choose a reason for hiding this comment

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

👏

@ihnorton ihnorton merged commit 7a8e2b1 into dev Aug 22, 2022
@ihnorton ihnorton deleted the rd/delete_fragments branch August 22, 2022 13:01
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.

None yet

4 participants