Skip to content

Expose shared column rename access for table and view actions - #2744

Open
minleejae wants to merge 2 commits into
JSQLParser:masterfrom
minleejae:refactor/ddl-rename-actions-20261001
Open

minleejae wants to merge 2 commits into
JSQLParser:masterfrom
minleejae:refactor/ddl-rename-actions-20261001

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Expose active column renames through AlterExpression.getColumnRename() and ColumnRenameAction with consistent editable source and target names. Existing fields and getters remain the backing state; unrelated rename kinds return null. Keep identifier quoting and the optional COLUMN keyword unchanged.

Existing parser result classes and public method signatures are retained. This change does not expand grammar or dialect acceptance. This can be reviewed independently of the column-default API. Merging both requires RelationAlterAction to implement both interfaces; the combined integration branch has verified that declaration.

Validation: 284 focused tests pass, including 16 new cases across explicit MySQL/PostgreSQL dialects. Spotless passed. usage.rst includes a usage example.

Combined validation with the six related DDL refactoring branches: Gradle check passes (9,395 tests: 9,370 passed, 25 skipped, zero failures). Of 840 DDL cases accepted by MySQL 8.4.11/PostgreSQL 18.6, 835 parse and produce toString/deparser SQL that also executes successfully; the remaining 5 already fail to parse on base 87e8814. Final SQL outputs match the DB-replayed outputs exactly. These combined checks supplement the branch-specific tests above.

Signed-off-by: minleejae <mmj9808@gmail.com>
Signed-off-by: minleejae <mmj9808@gmail.com>
@minleejae
minleejae marked this pull request as ready for review October 1, 2026 15:21

This branch has not been deployed

No deployments
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.

1 participant