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

[FEATURE] MySQL ADD PARTITION and DROP PARTITION Clauses in ALTER TABLE Statements Not Parsed Correctly by JSQLParser #2106

Closed
minleejae opened this issue Nov 12, 2024 · 1 comment
Labels
DDL DDL statement related MySQL MySQL specific issue Sponsor needed

Comments

@minleejae
Copy link
Contributor

Grammar or Syntax Description

The ADD PARTITION and DROP PARTITION clauses in ALTER TABLE statements are not correctly parsed by JSQLParser. The parser fails to recognize these operations and does not parse them correctly.

SQL Example

ALTER TABLE t1 ADD PARTITION (PARTITION p3 VALUES LESS THAN (2002));
ALTER TABLE t1 DROP PARTITION p3;

Additional context

Applicable RDBMS: MySQL 8.0
JSQLParser: 5.0
The parsing fails with errors, and it is necessary to add appropriate support for ADD PARTITION and DROP PARTITION clauses in ALTER TABLE statements.

@manticore-projects manticore-projects added MySQL MySQL specific issue DDL DDL statement related Sponsor needed labels Nov 12, 2024
@manticore-projects
Copy link
Contributor

Solved via #2108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL DDL statement related MySQL MySQL specific issue Sponsor needed
Projects
None yet
Development

No branches or pull requests

2 participants