branch-4.2: [fix](statistics) full analyze not collect hot value by default #63625 - #68298
Merged
yiguolei merged 1 commit intoSep 21, 2026
Conversation
…he#63625) apache#62435 let full analyze always collect hot value, but excute may exceed statistics sql memory limit (default 2GB) for big table. Keep sample analyze hot value collection unchanged while making manual full analyze require explicit WITH HOT VALUE. Auto full analyze continues to skip hot values, and auto sample still collects them, no change behaviour. usage: ```sql analyze table t with sync with hot value ``` Tests: - FE UT: AnalyzeTableCommandTest, OlapAnalysisTaskTest, AnalysisManagerTest - Regression: test_hot_value, test_full_analyze_hot_value Docs PR: apache/doris-website#3769
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cherry-pick: #63625
Conflicts are limited to FE test files, because branch-4.2 statistics tests still use JMockit while master has moved to Mockito, and
TableNameInfo/PartitionNamesInfolive inorg.apache.doris.infoon branch-4.2. The test additions were re-expressed in the branch-4.2 idiom; main-source changes are identical to #63625.testDoSampleAlwaysCollectsHotValuealso stubsgetSampleCollectInfo(..)with aSampleCollectInfoinstead ofuseLinearAnalyzeTemplate(), since branch-4.2doSamplepicks the template through the sample-algorithm decision, andAnalysisManagerTestnow uses the 4-argmockAnalyzeCommand(..)helper so the Paimon row-count case keeps a non-nullAnalyzeProperties.FE UT: AnalyzeTableCommandTest, OlapAnalysisTaskTest, AnalysisManagerTest, HMSAnalysisTaskTest, StatisticsUtilTest