Skip to content

Model MySQL ANALYZE TABLE statements - #2542

Open
minleejae wants to merge 2 commits into
JSQLParser:masterfrom
minleejae:fix/mysql-analyze-table
Open

Model MySQL ANALYZE TABLE statements#2542
minleejae wants to merge 2 commits into
JSQLParser:masterfrom
minleejae:fix/mysql-analyze-table

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Summary

  • parse MySQL ANALYZE TABLE into the existing typed Analyze statement
  • expose all target tables, write modifier, histogram action, histogram columns, and bucket count as structured properties
  • preserve the existing single-table getTable() API and ANALYZE table output
  • update table discovery, validation, and statement deparsing for multiple tables

Validation

  • ./gradlew test spotlessCheck checkstyleMain checkstyleTest
  • parser generation remains at the baseline 11 warnings
  • verified ANALYZE TABLE, multi-table, histogram update/drop, LOCAL, and NO_WRITE_TO_BINLOG forms against MySQL 8.4

PR checklist

  • One independently reviewable feature
  • Structured AST access; callers do not need to reparse tokens
  • Backward-compatible single-table accessors

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