shuke987 opened a new pull request, #65655:
URL: https://github.com/apache/doris/pull/65655

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #65445
   
   Problem Summary:
   
   Backport #65445 to branch-4.0.
   
   The regression case `test_scale_num_nulls` depends on asynchronously visible 
physical row counts. When the physical row count is still 0, Nereids scales the 
selected-partition column statistics to 0 even though the injected 
partition/table statistics are correct, making the case flaky.
   
   Replace the environment-dependent Groovy regression case with a 
deterministic FE unit test that directly constructs the partition/table 
statistics and verifies selected-partition scaling, including row count, NDV, 
min/max, count, and numNulls.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
     Local validation:
     - 
`StatsCalculatorTest#testComputeOlapScanScalesNumNullsForSelectedPartitions`: 
passed (1 test)
     - `StatsCalculatorTest`: passed (17 tests)
     - `mvn -pl fe-core -am checkstyle:check`: passed (0 violations)
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to