Skip to content

Model MySQL ALTER TABLE partition operations - #2540

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:feat/mysql-alter-table-partitions-1668
Open

Model MySQL ALTER TABLE partition operations#2540
minleejae wants to merge 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

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

1 participant