Skip to content

Support optimize table sql bind and add test case#34242

Merged
strongduanmu merged 5 commits intoapache:masterfrom
chakkk309:optimize-table-sql-binder
Jan 6, 2025
Merged

Support optimize table sql bind and add test case#34242
strongduanmu merged 5 commits intoapache:masterfrom
chakkk309:optimize-table-sql-binder

Conversation

@chakkk309
Copy link
Contributor

@chakkk309 chakkk309 commented Jan 4, 2025

Ref #34029.

Changes proposed in this pull request:

  • Support optimize table sql bind and add test case

Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

@chakkk309 chakkk309 changed the title Support optimize table SQL bind and add test case Support optimize table sql bind and add test case Jan 4, 2025
@Override
public OptimizeTableStatement bind(final OptimizeTableStatement sqlStatement, final SQLStatementBinderContext binderContext) {
OptimizeTableStatement result = copy(sqlStatement);
Multimap<CaseInsensitiveMap.CaseInsensitiveString, TableSegmentBinderContext> tableBinderContexts = LinkedHashMultimap.create();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use static import to remove CaseInsensitiveMap. prefix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use static import to remove CaseInsensitiveMap. prefix.

Updated the import as suggested~

@chakkk309 chakkk309 requested a review from strongduanmu January 5, 2025 11:52
Copy link
Member

@strongduanmu strongduanmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, merged.

@strongduanmu strongduanmu merged commit 5521c8a into apache:master Jan 6, 2025
147 checks passed
@chakkk309 chakkk309 deleted the optimize-table-sql-binder branch January 13, 2025 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants