Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](analysis) sorted partition when do sample analyze #32185

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

freemandealer
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

@freemandealer freemandealer changed the title sort partition when do sample analyze [fix](analysis) sorted partition when do sample analyze Mar 18, 2024
@freemandealer freemandealer marked this pull request as ready for review March 18, 2024 02:53
@freemandealer
Copy link
Contributor Author

run buildall

Comment on lines +259 to +261
List<Partition> sortedPartitions = olapTable.getPartitions().stream().sorted(
Comparator.comparing(Partition::getName)).collect(Collectors.toList());
for (Partition p : sortedPartitions) {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need update inject stats of nereids tpcds shape test? @Jibing-Li

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we need to regenerate tpcds stats.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nereids tpcds shape test stats was collected using full analyze, so we don't need to update it.

Copy link
Contributor

PR approved by anyone and no changes requested.

@freemandealer
Copy link
Contributor Author

run performance

@freemandealer
Copy link
Contributor Author

run buildall

@freemandealer
Copy link
Contributor Author

run p0

Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 20, 2024
@morrySnow morrySnow merged commit a0d255d into apache:master Mar 20, 2024
27 of 30 checks passed
seawinde pushed a commit to seawinde/doris that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.0.7-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants