Skip to content

fix: traverse and deparse structured table partitions - #2610

Merged
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/ddl-partition-traversal
Sep 12, 2026
Merged

fix: traverse and deparse structured table partitions#2610
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/ddl-partition-traversal

Conversation

@minleejae

@minleejae minleejae commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

TablesNamesFinder omits the child table in PostgreSQL ATTACH/DETACH PARTITION and the exchange table in MySQL EXCHANGE PARTITION. Extend shared table-definition traversal to those references and to structured partition keys and PostgreSQL bounds.

Reuse callback-aware rendering for CREATE/ALTER partition keys and bounds, including subpartition keys, while preserving raw MySQL partition-definition values and options. Regression tests cover table discovery, visitor context, custom expression rendering, and unchanged SQL output. MINVALUE/MAXVALUE range markers are preserved and excluded from column-reference traversal.

Validation: Java 17 ./gradlew check passed, including the full test suite, grammar ambiguity check and static analysis.

@manticore-projects
manticore-projects merged commit ef42d0b into JSQLParser:master Sep 12, 2026
10 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.

2 participants