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

Change delete index API to logical delete #191

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

dai-chen
Copy link
Collaborator

@dai-chen dai-chen commented Dec 11, 2023

Description

This is a follow-up PR after #189 which changes the semantic of delete index API from physical to logical delete.

Issues Resolved

#104

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dai-chen dai-chen added the maintenance Code refactoring label Dec 11, 2023
@dai-chen dai-chen self-assigned this Dec 11, 2023
Signed-off-by: Chen Dai <daichen@amazon.com>
@dai-chen dai-chen force-pushed the change-logical-delete branch from 9bd6fc6 to 11b8270 Compare January 8, 2024 21:40
@dai-chen dai-chen added the 0.2 label Jan 8, 2024
@dai-chen dai-chen changed the title Implement logical deletion in delete index API Change delete index API to logical delete Jan 8, 2024
Signed-off-by: Chen Dai <daichen@amazon.com>
@dai-chen dai-chen marked this pull request as ready for review January 9, 2024 01:02
Copy link
Collaborator

@penghuo penghuo left a comment

Choose a reason for hiding this comment

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

no doc change required?

@dai-chen
Copy link
Collaborator Author

no doc change required?

Missed it. Updated user manual here: https://github.com/dai-chen/opensearch-spark/blob/change-logical-delete/docs/index.md#sql. Thanks!

- **SHOW:** Display all Flint indexes in the specified catalog or source table.
- **DESCRIBE:** Retrieve detailed information about a Flint index.
- **DROP:** Delete a Flint index logically. This action stops the refreshing process and rules it out in query rewrite.
- **VACUUM:** Physically remove all data associated with a Flint index, including index metadata and data. This operation effectively cleans up and frees resources.
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, is there any precedence for this work "VACCUM"

Copy link
Collaborator Author

@dai-chen dai-chen Jan 19, 2024

Choose a reason for hiding this comment

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

you can find more details here: #189. This is mainly to fix the inconsistent behavior with SQL plugin on drop index statement.

@dai-chen dai-chen merged commit fa0becd into opensearch-project:main Jan 19, 2024
4 checks passed
@dai-chen dai-chen deleted the change-logical-delete branch January 19, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.2 maintenance Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants