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

   ### What problem does this PR solve?
   
   Issue Number: N/A
   
   Related PR: #62265
   
   Problem Summary:
   
   `test_scale_num_nulls` checks that table-level `numNulls=3` is scaled to `1` 
when partition pruning selects 4 of 12 rows. The regression case executes 
`EXPLAIN MEMO PLAN` immediately after insert and analyze, but Cloud P0 reports 
the physical partition row count asynchronously. The planner can therefore 
observe a transient selected-partition row count of zero, while waiting for the 
real row count can take up to two minutes.
   
   This change:
   
   - extracts the existing null-count scaling formula into a package-private 
helper used by the production path;
   - adds deterministic FE unit coverage for table row count 12, 
selected-partition row count 4, and table-level `numNulls=3`;
   - removes the timing-dependent Groovy regression case.
   
   The unit test uses only fixed in-memory statistics and has no cluster, 
physical row-count reporting, polling, sleep, network, or storage dependency. 
Planner behavior is unchanged.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test
         - `StatsCalculatorTest#testScaleNumNullsForSelectedPartitions`: passed 
3 consecutive runs
         - `StatsCalculatorTest`: 17 tests passed
       - [ ] Manual test
       - [ ] No need to test or manual test
   
   - 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