Skip to content

Model MySQL ALTER TABLE partition operations - #2540

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/mysql-alter-table-partitions-1668
Sep 5, 2026
Merged

Model MySQL ALTER TABLE partition operations#2540
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/mysql-alter-table-partitions-1668

Conversation

@minleejae

@minleejae minleejae commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Completes the remaining ALTER TABLE half of #1668 after #2521.

  • returns AlterExpressionPartition for every MySQL partition operation
  • reuses TablePartitioning for structured PARTITION BY access
  • models ALL, coalesce count, exchange table, and validation mode explicitly
  • fixes WITHOUT VALIDATION and supports quoted partition/table names
  • covers the MySQL 8.4 partition-operation grammar with round-trip and AST tests

./gradlew check passes.

Closes #1668

@manticore-projects
manticore-projects merged commit 80305c7 into JSQLParser:master Sep 5, 2026
8 checks passed
@manticore-projects

Copy link
Copy Markdown
Contributor

Thank you!

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.

parser sql of MySQL create or alter table with partition occur exception

2 participants