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

[v3.0.0] Deprecate SQL Delete statement #3337

Merged
merged 7 commits into from
Feb 25, 2025

Conversation

dai-chen
Copy link
Collaborator

@dai-chen dai-chen commented Feb 19, 2025

Description

This PR removes the SQL DELETE statement and the associated plugin setting plugins.sql.delete.enabled from the codebase, doctests, and documentation.

Note: There are still legacy code related to the DELETE statement inherited from NLPChina. Since we've been working on Calcite integration, I am leaving that legacy code untouched for now.

Related Issues

Resolves #3281

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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 force-pushed the deprecate-delete-statement branch from ee5e40a to 288bc31 Compare February 20, 2025 19:11
Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: Chen Dai <[email protected]>
noCharger
noCharger previously approved these changes Feb 21, 2025
Copy link
Collaborator

@noCharger noCharger left a comment

Choose a reason for hiding this comment

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

Overall lgtm. Just curious, are there any backwards compatible test cases for the delete statement and its associated settings?

@dai-chen
Copy link
Collaborator Author

dai-chen commented Feb 21, 2025

Overall lgtm. Just curious, are there any backwards compatible test cases for the delete statement and its associated settings?

I didn't find earlier. Let me do another pass.

Or you mean we should add some test for this breaking changes?

@noCharger
Copy link
Collaborator

Or you mean we should add some test for this breaking changes?

It's fine if there is no existing bwc test. Also, not sure if we can direct the query to a specific node in a mixed cluster with both new and old nodes.

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.

Is there doc to track 3.0 breaking change? if no, let's create a task to track it.

@dai-chen
Copy link
Collaborator Author

Is there doc to track 3.0 breaking change? if no, let's create a task to track it.

Sure will do.

@dai-chen dai-chen merged commit f5e7869 into opensearch-project:main Feb 25, 2025
22 checks passed
@dai-chen dai-chen deleted the deprecate-delete-statement branch February 25, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove DELETE statement support in SQL and remove plugins-sql-delete-enabled
3 participants